IBM Prerequisite Scanner User Manual page 144

Table of Contents

Advertisement

Syntax
versionCompare(ver1,ver2)
Input parameters
String ver1
String ver2
Return values
Integer 0
Integer -1
Integer 1
134
Prerequisite Scanner: User's Guide
Table 40. Parent functions calling versionCompare (continued)
Parent Function, Script
os.servicePack_compare.vbs
os.versionNumber_compare.vbs
Contains the expected version for a prerequisite property.
Contains the actual version for a prerequisite property.
Returns the 0 return code if both input parameters are equal. The parent
function returns "PASS".
Special case: Returns the 0 return code and exits if both input parameters are
empty.
Returns the -1 return code if the first input parameter is less than the second
input parameter. The parent function returns "FAIL".
Special case: Returns the -1 return code and exits if the first input parameter is
empty.
Returns the 1 return code if the first input parameter is greater than the second
input parameter. The parent function returns "PASS".
Special case: Returns the 1 return code and exits if the second input parameter
is empty.
Description
Compares the real and expected values for
the OS service pack prerequisite property.
Compares the real and expected values for
the OS version prerequisite property.

Advertisement

Table of Contents
loading

Table of Contents