Using AND and OR Statements


You may frequently use an AND or an OR statement following an IF statement to further qualify a condition specified by the IF statement. AND places a further constraint (both or all of two or more conditions must be true), while OR lessens the constraint (either or any of two or more conditions must be true). Depending on whether the AND/OR statement is true or false, APPX either modifies or preserves the value of the true/false status indicator just set by the preceding IF statement. With AND and OR statements, you effectively give APPX two or more opportunities to set (or modify) the same status indicator.

See the following sections demonstrating using AND after an IF statement and using OR after an IF statement.