Typed Value Creation
AMPS includes functions for explicitly constructing constant values of various types.
Function | Parameters | Description |
---|---|---|
| none | Returns a boolean false value. This function is most useful for constructing values in message types that have a distinct type for boolean values. In the AMPS expression language, false is equivalent to a literal 0. |
| none | Returns a boolean true value. This function is most useful for constructing values in message types that have a distinct type for boolean values. In the AMPS expression language, true is typically represented with a literal 1. |
| none | Returns a NaN (not a number) value. |
| integer (0-255) | Returns the character (byte) for the integer provided. This function is most useful for constructing values in message types that have a distinct type for char values. In the AMPS expression language, a single character value is equivalent to a string constructed with an escape, and constructing a string literal is more efficient. That is, However, to construct a character based on a field, use |
Last updated