Function iff

A simulation of inline conditional statement

This function simulates a single line conditional statement. Based on the state of the first argument it returns either second or third one.

Input:

Output: