&IG-MAJOR-VER

Holds a string indicating the major version number of the generator. Use &NUM to convert the returned string to a number you can use, for example, to:
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
  • Compare ranges of versions with relational comparison operators.
  • Document a run, such as a comment in the generated output.
  • Test a rules program that depends on the features in a specific MFG version.

Syntax:

&IG-MAJOR-VER

Aliases:

&ig-major-ver     &Ig-Major-Ver
&igmajorver       &IgMajorVer
&IGMAJORVER

Comment:

Because generators prior to Version 1.2 do not support this function, you may find this function more useful in the future.

Examples:

For code that depends on the major version of the generator, you can code:

% IF &IG-MAJOR-VER = "2"
    %* Logic that takes advantage of release 2
    %* features only% ELSE 
    %* Logic for generating with any other version
% END

When executing IG Version 1.2, MFG generates:

&IG-MAJOR-VER = "1"