I can enter if but not execute statements inside

Do you know what the last pos is?
Did you run my code?