If/then statement problem

Blitz3D Forums/Blitz3D Programming/If/then statement problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The indentation suggests that you are mixing up the two kinds of If statement.

The block version has the form
If condition
   ; A block of statements
   ; goes here
End If

The single-line version does not have End If, it ends at the end of the line.
If condition Then statement1 : statement2 : etc.    ; and it ends here.

Note the word Then is optional.