The way around this is to nest them, and put the largest value at the top. For instance, instead of this...
if a < 5 then...
endif...
if a < 10 then...
endif...
You do this for nesting:
if a < 10 then
if a < 5 then
code here...
else
code here...
endif
endif
or this for simple and fast testing:
if a < 10 then
code here...
goto SkipTests
endif
if a < 5
code here...
endif
SkipTests:
Using this method skips all of the IF's if the most extreme condition isn't true. All of this depends upon the assumption that the value of "a" isn't changed within any of the conditional statements.
Bookmarks