if then else

Blitz3D Forums/Blitz3D Programming/if then else

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.

If KeyHit(50) >= 1 then MusicFlag=1-MusicFlag


KeyHit() doesn't always return just true (1)- it returns the number of times the key has been pressed since the last call to it. Just a little thing you might want to keep in mind just in case. Rarely if ever will it return above 1 for me.