arc:if keyword to evaluate expressions that can contain items, attributes, and values. The scope of the keyword is executed if the specified expression evaluates to true.
Parameters
- exp: The expression to evaluate. You can make string, date, and numeric comparisons.
- attr: The name of the attribute to compare the value of. The value of an attribute can be checked for a matching value or for the values
nullornotnull. - value: The value to compare with the value of the attribute specified by attr.
- item: The item that contains the attribute being compared.
- operator: The name of the operator to compare the operands specified by attr and value. Allowed values:
null,notnull,hasvalue,equals,equalsignorecase,notequals,lessthan, andgreaterthan. The default isnotnull. - action: The action to perform if the expression evaluates to
true. Allowed values:breakorcontinue.
Control Attributes
NoneExamples
Evaluate a simple comparison of two values:See Also
- arc:exists: Check that an attribute has a value in the specified item.
- arc:equals: Create a block that is executed when equality is met.