foozle my moose,
There are a few ways, depending on exactly what you are needing. To simply check two IF statements together, just nest one statement in the other.
Psuedo:
if statement is true
if statement is true
run specified code
endif
endif
Also, an IF statement with a nested IF THEN statement within it is possible.
Psuedo:
if statement is true
if statement is true then run specified code
endif
Now, an example of an IF ELSE statement with a nested IF THEN and IF statement within it.
Psuedo:
if statement is true
if statement is true then tun specified code
else
if statement is true
run specified code
endif
endif
Without experimentation, I believe you can even nest IF THEN statements within side eachother.
Psuedo:
if statement is true then if statement is true then run specified code
Don't forget the
AND and
OR logical operators.
Psuedo:
if statement is true or statement is true and statement is true
run specified code
endif
Simply, learn the concept of the ability to nest statements within statements. There are many more ways to nest if statements within eachother, and how you use them will depend on your programs' needs. If you have an if statement, which will hold within itself(master) another if statement(slave), remember that the 'master' statement's
endif command must be the 'closer', the one at the bottom of the entire if statement.
+NanoBrain+