In addition to always return by value an estimation of the expression that verifies the condition (at compile-time or at run-time), I suggest adding also a compiler warning if the condition is already solvable at compile time, to highlight that the "IIF" usage is useless in the formal code (unless the user knowingly uses as a condition a constant whose value is a conditional compilation criterion).

 

Last edit: fxm (freebasic.net) 2017-09-10