I’m new to Lua but not to game coding… how do you the pseudo code below
IF condition A == TRUE OR condition A == TRUE then …
eg.
if gameTimer == 0 OR gameLives == 0 then
gameMode = “GAMEOVER” --code to show game is now over
else
–continue with game code --game not over so continue
end
up till now I have structured my code to get around this but now I either need to duplicate a large block of code or use a function and try to sort out which varibles can stay local or need to become global. all quite messy and unnecessary… if someone can show how you can set up multiple condition testing… many thanks
[import]uid: 3093 topic_id: 9812 reply_id: 309812[/import]