1 IF Provides conditional command processing. Format IF condition state 2 Parameter condition This is a keyword specifying the particular condition to be evaluated. Specific conditions can have prerequisites, such as the specification of an additional parameter, or requiring a specified volume be mounted. This keyword cannot be abbreviated. state A keyword that specifies the particular condition; the particular state for the the test condition. The state can be specific to the particular condition. This keyword cannot be abbreviated. 2 Description Provides conditional command interpretation. Keyword Condition Resulting Action FAT [NO]COMPATDetermines if the target FAT volume structure was initialized by OpenVMS, and if the version meets minimum structural requirements. If the version meets current volume structure compatibility requirements, the IF evaluates as TRUE. FAT volume structures not initialized by OpenVMS EFI$CP will evaluate as FALSE. This includes any volume structures initialized by the EFI Shell environment, or by Microsoft Windows. Requires the specified FAT volume be mounted. VERSION MINIMUM Determines if the running version matches the specified version, or higher. Specification of ELSE is optional. Specification of ENDIF is required. The nesting of IF constructs is not supported. EFI$CP> IF FAT COMPATIBLE foo: EFI$CP> WRITE "Commands performed if FAT compatible" EFI$CP> ELSE EFI$CP> WRITE "Commands performed if not compatible," EFI$CP> WRITE "or if not intialized by EFI$CP" EFI$CP> ENDIF EFI$CP> ! initialize the target FAT volume foo:, if found not current/compatible EFI$CP> IF FAT NOCOMPATIBLE foo: EFI$CP> WRITE "Performing volume (re)initialization" EFI$CP> INITIALIZE... EFI$CP> ENDIF