Variable Types Used in Logical Conditions
When a condition is specified in a Decision Point, Account Rule or other logical element, an equation-based comparator is used to evaluate condition logic by according to variable type.
The following table summarizes the variable types and operators that are available in logical condition statements:
Variable Type | Operators Available |
---|---|
Text |
|
Number/Currency |
|
Date |
|
Boolean |
|
Dynamic Variable |
|
Photo |
|
* Valid for use only with the Internal value 'Current Date' and Session Variable 'Time Stamp' |
Comparing Two Date Values in Interact
The value of a Date variable is always stored in Milliseconds. However, a Date value is displayed on X‑Platform showing only the standard Month, Day and Year.
This means that two displayed values may show the same date (e.g., 10/29/2018
) even though their stored values are different (e.g., 10/29/2018 15:45:
33:445
vs. 10/29/2018 15:45:
37:214
.
It's important to be aware of this difference in certain scenarios, for example, when you want to check the value of two dates to see if they are equal. In such a scenario, you will need to parse each date without its millisecond value in order to receive the correct answer.