IF


Command for conditional branching in command files.
Options: -[!] {Y [text] | E filename | {= | < | <= | > | >=} arg1 arg2}
-! negation operator; comes between dash (-) and conditional expression; reverses the truth conditions of the conditional expression it proceeds
-Y text the text is echoed, and if the user enters a 1, Y, or y, then the command following the IF statement is executed
-E filename if the named file exists, the command following the IF statement is executed
-or-
-{= |< | <= | > | >=} arg1 arg2} the command or block of commands following the IF statement is executed if =, <, <=, >, or >= holds between arg1 and arg2; that is, if arg1 {comparison} arg2 is true. You can separate expressions by |, which means "or," or by &, which means "and"


Basic CFNIII Commands