Wworkflow system supports literals of most supported simple and composite data types.
Following is a list of the supported simple and composite data type literals:
true
false
Enter these literals as shown above: lower case, with no surrounding quotation marks.
[+|-]<digits>.<digits>[(E|e)[+|-]<digits>]
where either
set of digits separated by the decimal point can be optional (but not both sets), and the decimal
point is optional if E or e exists. Examples of float literals
include:1.0 0.53 -1e5 3.43769e-27
The maximum number of digits in a float literal is platform-dependent. If you enter a value that exceeds the limit for your server or client platform, workflow system silently truncates the value when storing it. Generally, float literals of 15 or fewer digits fall within the supported range and are not truncated.
In mixed arithmetic of binary and decimal float values, all binary float values are converted to decimal float format for evaluation of the expression-therefore, the result of the evaluation is a decimal float value. If necessary, the result is subsequently converted back to binary float format. For example, this additional conversion is necessary if the result of the expression is to be stored in a data field, which stores only binary float values.
1 -25 1426987224
Remember that the value must be between -2147483648 and 2147483647.
A string literal must be enclosed in either single or double quotation marks. The literal can be up to 255 characters long, including the enclosing quotation marks.
The enclosing quotation marks are not considered to be part of the string. To include single or double quotation marks in a string, you must insert two of the desired quotation marks in the appropriate position within the string. For example:
To output this string | Input this |
---|---|
|
|
|
|
|
|
The time data type has no literal values.
Within an expression, a time value generally results from the systemtime() function, which returns the current time on the server where the expression is evaluated. A time value used within an expression can also result from an explicit conversion of a string literal, via the convert function or stringtotime function.