value = IIF(expression%, object_true, object_false)
This function returns one of the two objects, depending on the expression value of epxression%. It's implemented as a macro, thus it works with all data types.
LOCAL rn% = RND(10)
LOCAL out$ = IIF( rn% > 5, "rn > 5", "rn < 5")
PRINT out$, 0,0