Data type | Example | Valid/Invalid |
---|
Any | - var1=2
- var1=var2
- var1*=1
- var1+=2
- var1++
- var1=var2+2==10
| All are invalid as assignment operator is not allowed in expression |
String | - ""India"=="India""
- ""{var1}"=="{var2}""
- India==India
- {var1}=={var2}
(var1 and Var2 are stored variables containing string values)
| - Valid
- Valid
- Invalid
(The string data passed not specified in quotes "" also the whole expression is not inside "") - Invalid
(Variables containing string data are not specified in quotes "" also the whole expression is not inside "")
|
Integer | - 1==1
- {var1}=={var2}
- ""1"=="1""
- ""{var1}"=="{var2}""
(var1 and Var2 are stored variables containing integer values or numbers)
| - Valid
- Valid
- Valid
- Valid
|
Float | - 1.254==1.345
- {var1}=={var2}
(var1 and Var2 are stored variables containing Float values)
| - Valid
- Valid
|
Boolean | - true==true
- false==false
- TRUE==TRUE
- FALSE==FALSE
- {var1}=={var2}
(where var1 and var2 can have value either true or false)
| - Valid
- Valid
- Invalid
(Boolean values are case sensitive. Boolean values should be passed in small case). - Invalid
- Valid
|
Logical operators | (var1=true , var2=false) - {var1}&&{var2}==false
- {var1}||{var2==true
- !({var1}&&{var2})==true
| - Valid
- Valid
- Valid
|
Arithmetic Operators | - 1+1==2
- 1-1==0
- 2*2==4
- 8/2==4
- 9%2==1
| - Valid
- Valid
- Valid
- Valid
- Valid
|
Relational Operators | - 1==1
- 1!=2
- {Var1}<{var2}
- {var1}>{var2}
- {Var1}<={var2}
- {var1}>={var2}
| - Valid
- Valid
- Valid
- Valid
- Valid
- Valid
|
Bitwise Operators | (var1=60 , var2=13) - ({var1}&{var2})==12
- ({var1}|{var2})==61
- {var1}&{var2}==12
- {var1}|{var2}==61
- ({var1}^{var2})==49
- {var1}^{var2}==49
- ~{var1}==-61
- ~~{var1}==-61
- ~~({var1})==-61
- {var1}<<2==240
- {var1}>>2==15
- {var1}>>>2==15
| - Valid
- Valid
- Invalid
(Outer () are required,otherwise interpretation goes wrong and it may return false) - Invalid
(Outer () are required,otherwise interpretation goes wrong and it may return false) - Valid
- Valid
- Invalid
(~ itself is a qualitia special character) - Valid
(escape character ~ is followed by complement operator ~) - Valid
- Valid
- Valid
- Valid
|
Special Characters | Using Qualitia Special characters: - ""a~xyz"== "a~xyz""
- ""a~^xyz"== "a~^xyz""
- ""a~{xyz"== "a~{xyz""
- ""a~{xyz"== "a~{xyz""
Always use escape character ~ before qualitia special characters ~,^,{,} For any other character no escape character is required. e.g ""as#gh%ff"==" as#gh%ff"" |
All are valid
|