This page last changed on Apr 08, 2010 by ccnet-doc-gen.

Compare Values Condition

Checks if two values are the same.
This is typically used with dynamic values.

Version

Available from version 1.6

Examples

Basic example
<compareCondition>
  <value1>${value1}</value1>
  <value2>ToMatch</value2>
  <evaluation>notEqual</evaluation>
  <ignoreCase>true</ignoreCase>
</compareCondition>
Example in context
<conditional>
  <conditions>
    <compareCondition>
      <value1>${value1}</value1>
      <value2>ToMatch</value2>
      <evaluation>equal</evaluation>
    </compareCondition>
  </conditions>
  <tasks>
    <!-- Tasks to perform if condition passed -->
  </tasks>
  <elseTasks>
    <!-- Tasks to perform if condition failed -->
  </elseTasks>
</conditional>

Configuration Elements

Element Description Type Required Default Version
description A description of the condition. String No none 1.6
evaluation The type of evaluation. String - one of:
  • Equal
  • NotEqual
Yes n/a 1.6
ignoreCase Whether to ignore any case differences or not. Boolean No false 1.6
value1 The first value to evaluate. String Yes n/a 1.6
value2 The second value to evaluate. String Yes n/a 1.6

Notes

This condition has been kindly supplied by Lasse Sjørup. The original project is available from http://ccnetconditional.codeplex.com/.

Automatically Generated

Documentation generated on Thursday, 8 Apr 2010 at 12:04:29 AM
Using assembly version 1.6.7128.1

Document generated by Confluence on Jan 23, 2011 08:52