Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The utils object $Utils provides access to some utility functions for generating values for specific types

NameDescriptionTypeUsage Example
GetBoolean()
Boolean

GetDate()
Date

GetDateTime()
DateTime

GetNumber()
Number

GetString()
String

GetTime()
Time

NewGuidCreate a new randomly generated GUID
Guid
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

generatedIf two parameters are provided they designate the range for the

generated

number

.

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(

"1",

"10")$

$Utils.RandomNumber$

2

1906529119 

RandomNumber(
"10")
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

2

1906529119