PDA

View Full Version : Nesting conditionals



NewsArchive
08-15-2007, 02:38 AM
Is it ok to nest #ifcompvar and #ifconst statements within each other or within
themselves?

Here are four examples of what I mean:

#ifcompvar [DEMO] Not Equals "No" Then
#ifcompvar [MYCOMPVAR] Equals "No" Then
...
#end
#end

#ifcompvar [DEMO] Not Equals "No" Then
#ifconst $MYCONST$ Equals "No" Then
...
#end
#end

#ifconst $MYCONST$ Not Equals "No" Then
#ifcompvar [MYCOMPVAR] Not Equals "No" Then
...
#end
#end

#ifconst $MYCONST1$ Not Equals "No" Then
#ifconst $MYCONST2$ Not Equals "No" Then
...
#end
#end

Peter Gysegem
Beaver Creek Software

NewsArchive
08-15-2007, 02:38 AM
Hi Peter,

Yes, this should not cause any problems.

Friedrich