If, Then, Else problems

Blitz3D Forums/Blitz3D Beginners Area/If, Then, Else problems

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.

Anyone know some tutorails on select statement.

My book merely has 1 page about it and does not explain too well...
and blitzcoder has no tuts...

Far as I know its like a type... well not like it but typed like a type..

Select (varible name)
Case etc etc

End select

It basicly allows u to check a varible for whats going on instead of typing


if player hit then
;take 2 points away
playerlife = playerlife -2


but with select it can be done like this right?

Select Playerhit
Case Playerhit
Playerlife = playerlife - 2
Case Playerjumped And hit
playerlife = playerlife - 3
Case Playerdead
playerlife = playerlife = DEAD or what ever... LOL


Am i correct or wrong here