Quote:

hmm ok but surely IIF shouldn't execute both sections?




Yes it should.

You can only pass simple parameters to the IIF() function, so the result of the expressions (your functions and the conditional part) *have* to be resolved before IIF() is called.

To do anything different would require you to be able to pass function references, which is not possible in KiXtart.