Disable Tag with Logical or Conditional expression

What type of expression I can use to disable a tag? Like {numberMotor-2} to disable when numerMotor is equal to 2 (it works). I’ve seen {numberMotor}=2 to enable only when numberMotor is equal to 2, but this doesn’t work for me. Is possible to use a type of Logical or Conditional function? Thanks in advance.