Tag Examples
- Last UpdatedJun 06, 2017
- 1 minute read
The following tags are used in the examples that follow.
|
Tag |
Type |
Value |
|---|---|---|
|
Tag1 |
Numeric |
100 |
|
Tag2 |
Numeric |
50 |
|
Tag3 |
Numeric |
5.5 |
|
Tag4 |
Boolean |
0 |
|
Tag5 |
Boolean |
1 |
|
Tag6 |
String |
"String1" |
The following examples illustrate the types of expressions that you can create, as well as expressions that are invalid.
|
Expression |
Result |
Description |
|---|---|---|
|
{Tag1}+{Tag2} |
Invalid |
Tags cannot be directly modified. The result must be Boolean. |
|
{Tag2}/{Tag1} |
Invalid |
Tags cannot be directly modified. The result must be Boolean. |
|
{Tag1}=>{Tag2} |
Invalid |
Invalid operator; should be >=. |
|
(Tag5} |
Invalid |
Invalid delimiter (instead of {. |
|
{Tag1}|{Tag5} |
Invalid |
Tag1 has invalid data type. Both tags must be Boolean. |
|
{Tag6}|{Tag4} |
Invalid. |
Tag6 has invalid data type. Both tags must be Boolean. |
|
{Tag6}:="String2" |
Invalid |
Tags cannot be directly modified. The result must be Boolean. |
|
{Tag4} |
Valid |
False |
|
{Tag5} |
Valid |
True |
|
{Tag1}<{Tag3} |
Valid |
False |
|
{Tag1}>{Tag3} |
Valid |
True |
|
{Tag6}="String1" |
Valid |
True |
|
{Tag6}<>"String1" |
Valid |
False |
|
{Tag4}&{Tag5} |
Valid |
False |
|
{Tag4}|{Tag5} |
Valid |
True |
|
({Tag6}:="String2")=1 |
Valid |
Putting parentheses around the assignment and evaluating it equal to one makes this operation valid. |