The utils object $Utils provides access to some utility functions for generating values for specific types
Name | Description | Type | Usage Example | |
---|---|---|---|---|
GetBoolean(string value) | Parses specified value or variable to a boolean, allowing boolean operations and functions. | Boolean | ||
GetDate(string value) | Parses specified value or variable to a date, allowing date operations and functions | Date | ||
GetDateTime(string value) | Parses specified value or variable to a date-time, allowing date-time operations and functions. | DateTime | ||
GetNumber(number value) | Parses specified value or variable to a number, allowing numeric operations and functions. | Number | ||
GetNumber(datetime value) | Returns the number of ticks in a specified date-time value. | Number | ||
GetString(string value) | Parses specified value or variable to a string, allowing string operations and functions. | String | ||
GetTime(string value) | Parses specified value or variable to a time, allowing time operations and functions. | Time | ||
NewGuid(string formatString) | Create a new randomly generated GUID, optionally with a specified format. | String | $Utils.NewGuid$ | "da47b2d6-3580-48ed-b27a-f152da2345e6" |
RandomNumber([integer maxValue]) | Generate a new random integer value. If one parameter is provided it designates a random number in the range of greater than or equal to zero and less than the maxValue number provided will be generated. If no parameters are provided a 32-bit integer greater than or equal to zero and less than Int32 max value (2,147,483,647) will be generated. | Integer | $Utils.RandomNumber("10")$ $Utils.RandomNumber$ | 2 1906529119 |
RandomNumber(integer minValue, integer maxValue) | Generate a new random integer value. The parameters provided designate the range for the generated number. A random number in the range of greater than or equal to minValue and less than the maxValue will be generated. | Integer | $Utils.RandomNumber("1", "10")$ | 5 |