Comparison & Logical Operators

  • myIntegerA = myIntegerB [checks if two variables (e.g. two integers) are equal]
  • myIntegerA <> myIntegerB [checks if two variables (e.g. two integers) are not equal]
  • myIntegerA < myIntegerB [checks if variable of the left side is smaller than the variable on the right side of the equation]
  • myIntegerA > myIntegerB [checks if variable of the left side is larger than the variable on the right side of the equation]
  • myIntegerA <= myInteger [checks if variable of the left side is smaller than or equal to the variable on the right side of the equation]
  • myIntegerA >= myInteger [checks if variable of the left side is greater than or equal to the variable on the right side of the equation]
  • myIntegerA = myIntegerB And myIntegerC > myIntegerB [both conditions must be true for the whole expression to be true]
  • myIntegerA = myIntegerB Or myIntegerC > myIntegerB [at least one conditions must be true for the whole expression to be true]
  • myIntegerA = myIntegerB Xor myIntegerC > myIntegerB [exactly one condition must be true for the whole expression to be true]
  • myIntegerA = myIntegerB Xor myIntegerC > myIntegerB [exactly one condition must be true for the whole expression to be true]
  • Not (myIntegerA = myIntegerB Or myIntegerC > myIntegerB) [negates the logical expression; here: Both conditions inside the brackets must be false for the whole expression to be true]
Was this article helpful?
0 out of 0 found this helpful