A bizarre bug. The command will work correctly inside a if/elseif/else/$iif() if you use !.command instead of .!command. The bug only occurs if command is on the same line as the if/elseif/else/$iif(), and it doesn't occur within $iif() if it's part of a timer, scon, or scid command.