Location rules using owntracks

Hi im trying to set a rule that ill get a notification once im entering or exiting home
im using owntracks for that

my item looks like that
Number:Length DistanceSystem "System Distance" {channel="gpstracker:tracker:3983d18f:distanceSystem"}

and the rule is like that

    rule "BarakInHouse2"
when
    Item DistanceSystem changed
then
    // specify your home location
    if ( DistanceSystem < 100) {
        logInfo("Barak Home", "Barak is in the House.")
    } else {
        logInfo("Barak Home", "Barak is Out.")
    }
end

im having an error in that line: ( DistanceSystem < 100)
what is the best way to implement that?

thanks

Need to add item state in the rule like below.

rule "BarakInHouse2"
when
    Item DistanceSystem changed
then
    // specify your home location
    if ( DistanceSystem.state < 100) {
        logInfo("Barak Home", "Barak is in the House.")
    } else {
        logInfo("Barak Home", "Barak is Out.")
    }
end

Rules rule book:
Using items states in rules:

Please, please read the docs…