DevOps Edition for Continuous Integration 10.4 | Service Development Help | Conditional Expressions | Syntax | Comparing Java Objects to Constants
 
Comparing Java Objects to Constants
If you want to create a conditional expression that compares a constrained Java Object to a constant value, you must use the following syntax to represent the constant value:
If the object is constrained as type...
Use this syntax...
Boolean
"true" or "false"
Example: %myBoolean%=="true"
The string constant in the expression is case insensitive. For example, the expressions %myBoolean%=="true" and %myBoolean%=="tRUe" are equivalent.
Byte
"xx"
Example: "10" (for 0X0A)
Character
"a"
Example: "C"
Double
xxxxxx.x or xxxxxx or -xxxxxx
Example: 123456.0, 123456, -123456
Float
xxxx.xor -xxxx.x
Example: 1234.1, -1234.1
Integer
xxxxx or -xxxxx
Example: 12345, -12345
Long
xxxxxx or -xxxxxx
Example: 123456 or -123456
Short
xxx or -xxx
Example: 123 or -123
Date
"yyyy-MM-dd HH:mm:ss timezone"
Example: "2002-06-25 00:00:00 EDT"

Copyright © 2017-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release