Similar to SELECT CASE in LUA ?
Hello all - new to LUA here and still working on my first addon. In VBS/VBA I can use SELECT CASE - is there an equivalent in LUA ?
For example, if I did this, how could I achieve the same results in LUA (snippet - missing all declares, etc. - I can do that fine in LUA) : Select Case intQuestType Case 0 strQuestType = "123" Case 1 strQuestType = "456" Case 2 strQuestType = "789" Case Else strQuestType = "ABC" End Select Would I just use a series of IF/ELSEIFs ? |
|
All times are GMT -6. The time now is 01:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI