iff


IF function

Syntax:

res = iff(if_arg, a, b)

Description:

if if_arg then res = a otherwise res = b if_arg - condition (bool) a - any value b - any value res - any value

Example:

res = iff(12.4 > 0.5, 1, 0)

Legend: EPR-IT functions; MATLAB functions; comments.