Why isn’t this working?

So I know there are multiple ways to complete the last of learn to code 1 and I’ve looked up solutions, but I’m not trying to complete it, I’m more trying to find out why this way I’m trying to use isn’t working.


https://postimg.cc/image/exbmiikaz/


I figured the statement ‘if isBlockedRight && isBlocked turn left’ would make him turn left at the point he’s at right now but it’s not working for me, he just stands at the pint you see him at. Any ideas?


I also tried using an ’else if’ statement within the code and for some reason it said it wasn’t recognized. One is allowed to use ‘else if’ one after the other right?

Replies

If the ( block == isblocked ) you wouldn´t can move , i think