ph_getversion PowerHome formula function
Description
Returns the version of your currently running PowerHome
Syntax
ph_getversion ( )
ph_getversion ( ai_type )
Argument Description
ai_type Integer (Optional). A numeric value representing what type of the version you wish returned. If this parameter is omitted then a value of 0 is assumed. See Usage below for other allowed values
Return value
String. Returns the version of PowerHome that you are running formatted as a string.
Usage
Use this function to return the PowerHome version that is running. Prior to version 2.2, a single value was used to determine the PowerHome version.  Starting with PowerHome version 2.2, a subversion value was added to track minor version differences. 

The optional ai_type parameter determines the components that are returned that make up the version number. A value of 0 will return the main PowerHome version number. A value of 1 will return the sub version information. A value of 2 will return the combined version and sub version values together (this is what would be displayed in the Help->About window). Any other value will be treated as a 0. It should be noted that the sub version value may be blank in some versions of PowerHome 

Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_getversion(2) - Returns "2.2 beta2" for the 2nd beta version of PowerHome 2.2