Yes, ENDIF isn't needed with your code. It's only needed if you have code like this:
Line 1> IF B==#RIGHT THEN
Line 2> PX=PX+1
Line 3> LOCATE PX-1,PY
Line 4> PRINT " "
Line 5> ENDIF
because otherwise it wouldn't know where the IF ends.
Your code is like:
Line 1> IF B==#RIGHT THEN PX=PX+1:LOCATE PX-1,PY:PRINT " "
so it doesn't need ENDIF because that form of IF ends at the end of the line.
0そうだね 未プレイ