Conditional operator


The first operand (operand1) for a conditional operator must be of a Boolean type. In other words, the operand1 must be of a type that can be evaluated by a Boolean operator. If operand1 is not of a Boolean type, it will be converted to Boolean.

Related topic

If the value of operand1 is 'true', the result of the conditional operation is the value of operand2. Operand3 is not evaluated.

If the value of operand1 is 'false', the result of the conditional operation is the value of operand3. Operand2 is not evaluated.

For example, the expression that follows performs a conditional test and selects either a data field or a constant depending on the test.

     FIELDS=(3:13,IS_PACKED(16:4C)THEN 16:4P        
                ELSE 4P'0',19:*)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*