|
Post by Wiccaan on Feb 14, 2006 13:42:03 GMT -5
Sorry that Im new to the Lunar scripting plugin. And I must say, I do like Ive noticed in every script that Ive seen the big ugly if then statements (ewww) and I havent seen a select case / switch case type statement in anything so I figured Id suggest it being added. Sorry if its already there, I just havent seen it yet.
|
|
|
Post by X-Drop on Feb 14, 2006 14:59:53 GMT -5
The lua language does not include the switch statement. Although you could implement a C-style switch statement using various methods. Lua is amazingly flexible. Here is a link for creating a switch statement, lua-users.org
|
|
|
Post by TinyTerror on Feb 15, 2006 20:10:18 GMT -5
Yeah, I'm just adding features to lua, not actually adding language constructs. Save that for the patchers.
|
|
|
Post by Wiccaan on Feb 26, 2006 20:07:03 GMT -5
Lol no problem, was just wondering if there was already, or is going to be an easier method for this.
|
|