Curious why you used if compare(robot[3], "north") = 0 then rather than if equal(robot[3],"north") then, especially seeing as you only appear to be interested in = 0 and not in < 0 or > 0. It's not a big issue, but wanted to know why you chose one over the other
I was having trouble comparing the sequences with = so I figured I needed to do something special. I came across compare first in the docs so that’s what I used. I’ll update the example later today.
Curious why you used
if compare(robot[3], "north") = 0 then
rather thanif equal(robot[3],"north") then
, especially seeing as you only appear to be interested in= 0
and not in< 0
or> 0
. It's not a big issue, but wanted to know why you chose one over the other