PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Icanos on 05 November, 2003, 20:33:19

Title: Function
Post by: Icanos on 05 November, 2003, 20:33:19
I wonder if there are any function in lua that can replace the "Select Case" function in vbscript? :D
Title:
Post by: OpiumVolage on 05 November, 2003, 22:51:19
if
elseif
elseif
end

:))
Title:
Post by: Icanos on 06 November, 2003, 15:59:28
hehe yes.. but nothing else?
Title:
Post by: OpiumVolage on 06 November, 2003, 16:08:12
If you want something more complex, you can associate functions with a table ;)

But there is no case instruction.
Title:
Post by: Skrollster on 06 November, 2003, 19:48:56
indexed tables is as good as a case statment is...
Title:
Post by: Skrollster on 06 November, 2003, 20:01:29
here :  (http://board.univ-angers.fr/action.php?action=getlastboard&threadid=353&sid=bed0f7e29ecf05a7ae1b33f3ebf6bab1)  is a good example of how to do.. hope you understand..

//Skrollster