Iff Function

If the first argument evaluates to TRUE (i.e. non-zero) the function will return the value of argument 2. Otherwise it will return the value of argument 3. Note that the type of arguments 2 and 3 must both be the same. No implicit type conversion will be performed on these arguments.

Arguments

Number Type Compulsory Default Description
1 real array Yes Test value
2 real array Yes Result if test true
3 real array Yes Result if test false

Returns

Return type: real array