Document toolboxDocument toolbox

Examples of Expressions

Following are some examples of valid/invalid expressions.

In the follwoing examples, it is assumed that var1 and var2 as stored variables.

Notes

  1. The static or dynamic string data used, should always be enclosed within double quotes.
  2. The expression, having string as data, should always be enclosed within double quotes.
  3. Boolean values are case sensitive and should be written in small case.

    Data Type

    Example

    Valid/Invalid

    Any

    1.    var1==2

    All are invalid expressions

     

     

     

     

     

    2.    var1==var2

     

    3.    var1*=1

     

    4.    var1+=2

     

    5.    var1++

    String

    1.    ""India"="India""

    Valid

     

    2.    ""{var1}"="{var2}""

    Valid

     

    3.    India=India

    Valid

     

    4.    {var1}={var2}

    Valid

     

    5.    {var1}=={var2}

    Invalid

    Integer

    1.    1=1

    Valid

     

    2.    {var1}={var2}

    Valid

     

    3.    ""1"="1""

    Valid

     

    4.    ""{var1}"="{var2}""

    Valid

     

    5. 1==1

    Invalid ('==' is invalid expression)

    Double

    1.    1.254=1.345

    Valid

     

    2.    {var1}={var2}

    Valid

    Boolean

    1.    true=true

    Valid

     

    2.    false=false

    Valid

     

    5.    TRUE=TRUE

    Valid

     

    6.   true= True

    Valid

     

    7.    {var1}={var2}

    Valid

    Logical

    (var1=true , var2=false)

     

    operators

    1.    {var1} AND {var2}=false

    Valid

     

    2.    {var1} OR {var2}=true

    Valid

     

    3.    Not ({var1} AND {var2})=true

    Valid

    Arithmetic

    1.    1+1=2

    Valid

    Operators

    2.    1-1=0

    Valid

     

    3.    2*2=4

    Valid

     

    4.    8/2=4

    Valid

     

    5.    9%2=1

    Invalid

     

    6. 9 mod 2=1

    Valid

    Relational

    1.    1=1

    Valid

    Operators

    1. 1<>2

    Valid

     

    2.    Not 1=2

    Valid

     

    3.    {Var1}<{var2}

    Valid

     

    4.    {var1}>{var2}

    Valid

     

    5.    {Var1}<={var2}

    Valid

     

    6.    {var1}>={var2}

    Valid

    Special

    Using Qualitia Special characters:

     

    Characters

    1.    ""a~xyz"= "a~xyz""

     

    All are valid.

     

     

     

    2.    ""a~^xyz"= "a~^xyz""

     

    3.    ""a~{xyz"= "a~{xyz""

     

    4.    ""a~{xyz"= "a~{xyz""

    Notes:

  • Always use escape character ~ before Qualitia special characters ~,^,{,}
  • Any other character does not require escape character. For example: ""as#gh%ff"==" as#gh%ff""

Not finding what you need?