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

IF Statement within an IF Statement? 1

Status
Not open for further replies.

EvilTwinOfAtrus

Technical User
Dec 30, 2002
56
GB
Hi

Is it possible to have an IF Statement within an IF statement and if so how? (ie with brackets or speech marks?). Please give simple example if possible.

Thankyou,
Karl
 
Hi Karl!
If you are referring to if within queries:
If(condition=True;if(cond2=true;action1;action2);action3)
This is equivalent to:
If condition=true then
if cond2=true then
action1
else
action2
endif
else
action3
endif

OK? ;-)
MakeItSo

Andreas Galambos
EDP / Technical Support Specialist
(andreas.galambos@bowneglobal.de)
HP:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top