Order of evaluation -
01-12-2010
, 12:51 PM
Is it safe (though possibly unwise) to rely upon a particular order of
evaluation in a statement? The particular instance I was curious about is
something along these lines:-
if VarExists('Foo') <> 0 and Foo <> 0 then
do something
end if;
Can I guarantee that the VarExists part of the if expression will be
evaluated first? Or must I do this sort of thing in two nested if statements
instead.
Dave. |