dbTalk Databases Forums  

Order of evaluation

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Order of evaluation in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dave Foulkes
 
Posts: n/a

Default 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.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.