IIF
| Specification | Value |
|---|---|
| Description | Depending on a specified condition, it returns the second or the third argument. |
| Parameter 1 Name | Condition |
| Parameter 1 Type | Boolean |
| Parameter 2 Name | TrueValue |
| Parameter 2 Type | any type |
| Parameter 3 Name | FalseValue |
| Parameter 3 Type | any type |
| Return value | When Condition is 'True', it returns the TrueValue. When Condition is 'False', it returns the FalseValue |
Example:
10: IIF EXP:20 CONST:'Quantity is 1.00' CONST: 'Quantity is not 1.00'
20: EQUAL ATTRIB:QuantityValue CONST:1.00
OUTPUT:
If 'QuantityValue = 1.00', the output will be 'Quantity is 1.00'.
If 'QuantityValue = 2.00', the output will be 'Quantity is not 1.00'.
Note
The repository of the attribute is Crm.Sales.SalesOrderLines