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

1<compareCondition>
2  <value1>${value1}</value1>
3  <value2>ToMatch</value2>
4  <evaluation>notEqual</evaluation>
5  <ignoreCase>true</ignoreCase>
6</compareCondition>

Example in context

 1<conditional>
 2  <conditions>
 3    <compareCondition>
 4      <value1>${value1}</value1>
 5      <value2>ToMatch</value2>
 6      <evaluation>equal</evaluation>
 7    </compareCondition>
 8  </conditions>
 9  <tasks>
10    <!-- Tasks to perform if condition passed -->
11  </tasks>
12  <elseTasks>
13    <!-- Tasks to perform if condition failed -->
14  </elseTasks>
15</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 Monday, 26 May 2014 at 7:18:03 AM