MULTEXT - Document MQL2. SgmlQL reference/Operators.
Boolean and logical operators

And, or, not

The operator and returns TRUE if both arguments are true, FALSE otherwise. The operator or returns TRUE if at least one of the arguments is true, FALSE otherwise. The operator not returns TRUE if its argument is false, FALSE otherwise.

Prototypes

boolean <-- boolean and boolean

boolean <-- boolean or boolean

boolean <-- not (boolean)

Example

  • (3 == 3) and (2 == 4);
  • FALSE
  • (3 == 3) or (2 == 4);
  • TRUE
  • not (2 == 4);
  • TRUE
    


    | Top | Next | SgmlQL reference | LPL/CNRS | MULTEXT

    Copyright © Centre National de la Recherche Scientifique, 1997.