Mentions légales du service

Skip to content

Add an "else" branch to the "when" conditional

Created by: marvelous

when toto == 1 do
    callsub start_moving
else/otherwise
    callsub stop_moving
end

It should only get executed when the condition goes from true to false. A workaround is to add an other when with a negated condition.