Help with comparing decimal values from items

In general, don’t cast stuff to types in DSL rules unless you have to. Let the interpreter sort it out.

Having said that, you do have to type for this because .state might be ON/OFF or whatever. But use the “native” rules type, as Number

Fuller explanation is further down in here.

Community search tool is quite good.

The next surprise you might run into with comparisons is Quantity Type Items, with units embedded.

1 Like