Purpose
This function takes the array that is passed as an input parameter and returns a
string representation of the contents of that array.
Syntax
arrayToString(arr)
Input parameters
Array arr
Return values
String result
bigthan()
Calculates the difference between the expected and actual value of the prerequisite
property if that prerequisite property is a size in MBs or GBs.
Purpose
This function first calls the "changeMG()" function to change the expected and
actual values of the prerequisite property to MBs if required. It then checks
whether either returned value from the functions is null, and if either value is null,
the returned value of the function is 0MB and the function exits. It checks for MB
or GB in either value, converts to the MBs if required. It calculates the difference
between the final formatted values and returns the result.
Syntax
bigthan(expect,real)
Input parameters
String expect
String real
Return values
String bigthan
changeMG()
Formats the input parameter to remove any additional digit grouping characters
from it and returns the formatted parameter unless the input parameter contains
MBs or GBs. If it does, it converts the input parameter to either GBs or MBs
respectively.
Contains the array.
Returns a string representation of the array, with each item separated by a
comma.
The expected value of the prerequisite property.
The actual value of the prerequisite property.
Returns the difference in MBs or 0MBs if there is no difference.
Appendix E. Common functions for Windows systems
115
Need help?
Do you have a question about the Prerequisite Scanner and is the answer not in the manual?
Questions and answers