This operator is referred to as the evaluate-to-string operator ({}).
If an input requires a string or string array, you can use the evaluate-to-string operator ({}) to indicate that the text inside is an expression and not a literal part of the string.
When defining a string array using the array operator([]), the array must be enclosed in the evaluate-to-string operator ({}).
Formatting codes can be used to format numeric values as strings. These formatting codes use the same syntax as the TOSTRING function, with the exception that they must not be enclosed in quotation marks. To apply formatting, write a comma at the end of the expression, followed by a formatting code.
In some cases, the evaluate-to-string operator ({}) is able to return a string representation of data types other than those listed below. For example, it can evaluate a fixture value might be evaluated as a string such as "Fixture(X=1971.81, Y=1107.06, Angle=329.202)".
An expression.
1. |
The following example returns the current date and time in the default format (for example, "05/28/1977 16:41:01 ").
{DATETIME()}
|
2. |
The following example returns the current time in a specified format, as well as some text (for example, "The time is 08:27:33 in Dorval, Quebec, Canada"). The time is
{DATETIME("HH:mm:ss")} in Dorval, Quebec, Canada
|
3. |
The following example returns the number of occurrences found by a RectangleFinder step, as well as some text (for example, "This square is precisely 36.345 millimeters across"). Note that a formatting code is used to limit the numeric value to 3 decimal places. This square is
precisely {RectangleFinder.Occurrences(1).Width , 4:f3} millimeters
across
|
4. |
The following example returns the array of strings ["3","-1","10"]. {[1+2, 3-4,
3+4+3]}
|
5. |
The following example returns the array of strings ["1+2","3-4","3+4+3"]. {["1+2", "3-4",
"3+4+3"]}
|