Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL OR

Status
Not open for further replies.

ice7899

Programmer
May 14, 2006
59
GB
Am I right in thinking that if the first expression in an or statement evaluates to true then the second part is not tested

For example

if(a = 10 or b = 20)
Print 'Message'

Here, if a = 10 then Message is printed without evaluating b

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top