DriveWorks Solo 15: IfCondition [send feedback...]

IfCondition

Returns the first parameter if the first parameter matches the condition in the second parameter, or if not returns the second parameter.

Syntax

IfCondition( [Value], [Condition], [DefaultValue] )

Where:

Value is the value to check against the condition.

Condition is the condition the value must satisfy.

DefaultValue is the value to return if the first value does not satisfy the condition.

When Value is a long rule, and the required result when the Condition is matched is the result of the same rule, using IfCondition avoids having to enter the rule twice.

Examples

Rule

Meaning
IfCondition(LengthReturn,"<>0",TRUE)When the value coming from the form control Length matches the condition <>0, the value of the form control will be returned. Otherwise TRUE will be returned.

Comparing Values

OperatorMeaning
< Checks to see if the value is less than the value specified on the right hand side of the comparator.
<=Checks to see if the value is less than or equal to the value specified on the right hand side of the comparator.
>Checks to see if the value is greater than the value specified on the right hand side of the comparator.
>=Checks to see if the value is greater than or equal to the value specified on the right hand side of the comparator.
<>Checks to see if the value is not equal to the value specified on the right hand side of the comparator.
=Checks to see if the value is the same as the value specified on the right hand side of the comparator.

Table of Contents