Boolean operators - Macros

Far Manager

Boolean operators

You can use the following operators in a conditional expression Expr within the $If and $While macro-commands:

Operator Description
== equal
!= not equal
< less
> greater
<= less or equal
>= greater or equal

ATTENTION! ATTENTION!

  • Comparison operations for string arguments are case sensitive.

Boolean conditional expression Expr can be complex. You can use the following operators to combine the result of several simple expressions:

Operator Description
&& Logical AND
|| Logical OR

You can use the braces to change the condition evaluation precedence.

Notes

  1. It is impossible to use macro-language elements while recording a macro in a usual way. Macro-language elements can be added to the sequence only by editing the registry manually or by using special applications or FAR plugins.