Go to: Synopsis. Return value. MEL examples.
getApplicationVersionAsFloat()
If you use the "about -version" command you get a string value containing the application version. Strings of course may not be used in comparisons like:
if ($version > 3.5) { ... };
This procedure will return a float value containing the major and minor version number. The major version will be separated from the minor version by a decimal. For example, 4.0.3 will return a float value of 4.03.
None
if (getApplicationVersionAsFloat() >= 2.5) { print ("Running version 2.5 or higher\n"); };