xpfIfThenElseIfEx
FUNCTION xpfIfThenElseIfEx (condition1 , value1 : GENERIC; options1 : INTEGER; condition2 , value2 : GENERIC; options2 : INTEGER; condition3 , value3 : GENERIC; options3 : INTEGER; condition4 , value4 : GENERIC; options4 : INTEGER; condition5 , value5 : GENERIC; options5 : INTEGER; condition6 , value6 : GENERIC; options6 : INTEGER; condition7 , value7 : GENERIC; options7 : INTEGER; condition8 , value8 : GENERIC; options8 : INTEGER; condition9 , value9 : GENERIC; options9 : INTEGER; condition10, value10: GENERIC; options10: INTEGER;) value : GENERIC;
The function has variable number of arguments, i.e., it can be invoked with a minimum of 3 arguments and a maximum of 30 arguments and the number of arguments must be modulo 3.
This operation works as follows:
FOR each given condition argument DO IF (condition = TRUE) THEN RETURN(related value argument); END_IF; END_FOR; RETURN(?);
Â
Â
Arguments
1 | Type | Name | Comment |
2 | GENERIC | condition1 - condition10 | A "condition" argument can be specified as one of the following: When the xpxCONITION_EXPRESSION is set in the related "option" argument:
 |
3 | GENERIC | value1 - value10 | A "value" argument can be specified as one of the following: When the xpxVALUE_EXPRESSION is set in the related "option" argument:
 When the xpxVALUE_EXPRESSION is not set in the related "option" argument:         The "value" argument value will will be returned from the xpfIfThenElseIfEx() operation when the related "condition" argument value is TRUE |
4 | INTEGER | options1 - options10 | Optional argument. The default value is "xpxCONITION_EXPRESSION ~| xpxVALUE_EXPRESSION" |
Return Value
Â
Type | Name | Comment |
GENERIC | value | The function returns one of the "value" arguments or INDETERMINATE (?). Exception handling should be used to handle error conditions in the actual xpfIfThenElseIf() operation. |
Options
Option | Comment |
xpxCONDITION_EXPRESSION | The corresponding "condition" argument should be specified as an EDMruntimeExpression. |
xpxCONDITION_ARGUMENT_VALUE | The corresponding "condition" argument should be logical value. |
xpxVALUE_EXPRESSION | The corresponding "value" argument should be specified as an EDMruntimeExpression. |
xpxVALUE_ARGUMENT_VALUE | The corresponding "value" argument data value will be used as is. In this case any EDMexpressX data type is legal for the corresponding "value" argument. |
Â
Example
<Missing Example>
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â