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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If Then Statement

Status
Not open for further replies.

tonyfitz

Technical User
Joined
Mar 25, 2003
Messages
13
Location
IE
Hi

How do I write an "if then" statement where two conditions must exst at the same time for one function to be carried out:

if a=1 and b=2 then
carry out some function

Thanks

Tony


 
Hi Tony,

exactly that....

if a=1 and b=2 then
carry out some function

IF ((a = 1) AND (b = 2)) then
do this
END IF

Digga

Sharing Knowledge Saves Valuable Time!
 
Works perfectly

Thanks Digga

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top