Examples
Estimated reading: 1 minute
8 views
Rules Examples
Type |
Expression |
Result Type |
Result |
Vars |
Boolean |
true = true |
Boolean |
true |
Boolean |
true = “true” |
Boolean |
true |
Boolean |
true = false |
Boolean |
false |
Boolean |
true <> false |
Boolean |
true |
Boolean |
$theTruth = true |
Boolean |
true |
$theTruth = true |
Arithmetic |
4 – 1 |
Number |
3 |
Arithmetic |
4 * 2 |
Number |
8 |
Arithmetic |
( 4 / 2 ) / 2 |
Number |
1 |
Arithmetic |
1 + $five |
Number |
6 |
$five = 5 |
String |
“hello” = “hello” |
Boolean |
true |
String |
“hello ” + “world!” |
String |
Hello world! |
String |
$ver = true |
Boolean |
true |
$ver = true |
String |
$test = “hello” |
Boolean |
false |
$test = “tests” |
String |
$test <> “hello” |
Boolean |
true |
$test = “tests” |
Logic |
( 2 = 2 ) AND ( 1 = 1 ) |
Boolean |
true |
Logic |
( “test” = “test” ) AND ( 1 = 1 ) |
Boolean |
true |
Logic |
( “test” = “no” ) AND ( 1 = 2 ) |
Boolean |
false |
Function |
max(1,2) |
Number |
2 |
Context Reference |
“The Account Name is: ” + &Name |
String |
The Account Name is 1231 |
The context passed to the Evaluation call |
Context Reference |
“The Phone Number is: ” + &Contacts.[Primary=true].Phone |
String |
The Phone Number is 600600600 |
The context passed to the Evaluation call |