ifs expression function

Returns the string value of the second or third argument depending on the truth of the first argument.

All Usage Examples

See also: if

Usage

ifs(expression, true_value, false_value)

Note

This is a function, which means all parameters to the function are evaluated. So something like ifs($F > 1, system('echo one'), system('echo two')) will result in both system calls being run regardless of the result of the expression.

Examples

ifs ($F<12, padzero(4, $F), "0075")

When the current frame number ($F) is less than 12, returns a string containing the current frame number padded to four digits, otherwise returns 0075.