EFI$HELP.HLB  —  IF  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
Close Help