[SOLVED] Problem with rules if

First, when you post rules, code fences are really helpful for readability.

rule “Switching off the central heating pump at low furnace temperature”
when
    Item piec changed
then
    logInfo (“PumpCO”, “Furnace temperature:” + furnace)
    if (piec.state <TempMinCO.state) {
        pompaCO.sendCommand (OFF)
        logInfo (“Pump CO”, “Pump CO OFF”)
    }
end

How exactly is the rule “not working”? Are you seeing any errors in the log? If so, can you post them?

Is furnace an item or a variable? If an item, it should be furnace.state

How is piec defined? Number?