you can replace.
but as you put a function into the parameter, it will be scanned before the iif is tested.
for shawns example:
code:
$x = iif(1=1,FuncOne(),FuncTwo())
function FuncOne()
?"FuncOne..."
endfunction
function FuncTwo()
?"FuncTwo..."
endfunction
it is translated to:
code:
$x = iif(1=1,?"FuncOne...",?"FuncTwo...")
and then executed.
say you have nested function which calls itself like you had.
I'm sure what it becomes.
it keeps adding itself to the parameters until the stack gets filled.
like you probably know, expressions are executed in bracket-style manner.
this is different with commands.
command does something and if is conditional command.
mmm...
to make iif-function work as "expected", ruud would need to override normal syntax rules for it.
making any sense?
_________________________
!download
KiXnet