You use the script editor to add preprocessor directives to your scripts. Preprocessor directives are commands used by the script preprocessor to determine which portions of a script to compile. All preprocessor directives start with a pound sign (#) in the first column of the script editor and end with a carriage return. They do not end with a period. The preprocessor directives for selective compiling have a structure much like the if then...end if statement. The structure is shown in the following illustration.
Like the if then...end if statement, the #if and #end if clauses are required. You can include one or more of the optional #elseif clauses. The #else clause is also optional, but only one can be included.
You can use literal values and constants when writing the expressions. Any constants you reference must have been defined in the dictionary using the Constant Definition window.
The expression clause can be a boolean expression that evaluates to true or false. It could also be an integer expression for which any non-zero value is considered true and zero is considered false. The script statements following the first expression to be evaluated as true will be compiled.