menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
switch
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
switch
ToboboT
Join Date: 2011-06-25
Post Count: 2385
#115325369
Sunday, October 13, 2013 12:02 AM GMT
One thing, ROBLOX needs to add: switch(cased){ [1] = print("1",cased), [2] = print("2",cased), default = print("YOLo","default"), }
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
DrHaximus
Join Date: 2011-11-22
Post Count: 8410
#115325657
Sunday, October 13, 2013 12:05 AM GMT
your a moron
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
bombpaw
Join Date: 2009-03-15
Post Count: 3484
#115325749
Sunday, October 13, 2013 12:06 AM GMT
Or you could.... you know.... Make it yourself?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
ToboboT
Join Date: 2011-06-25
Post Count: 2385
#115325791
Sunday, October 13, 2013 12:07 AM GMT
sniff i kenw u guys wuld hait me
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
[rfa#hidefromsearch]
Join Date: 0001-01-01
Post Count: 0
#115325890
Sunday, October 13, 2013 12:08 AM GMT
[rfa#hidefromsearch]
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
blocco
Join Date: 2008-08-14
Post Count: 29474
#115327312
Sunday, October 13, 2013 12:25 AM GMT
what happens if cased is "default" and the default one is supposed to be handled separately than when cased is "default"
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Seranok
Join Date: 2009-12-12
Post Count: 11083
#115327863
Sunday, October 13, 2013 12:32 AM GMT
print({"1","2"}[value] or "default")
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
uyjulian
Join Date: 2012-11-29
Post Count: 1214
#115332537
Sunday, October 13, 2013 1:24 AM GMT
There's many ways to implement switch in Lua, look on ixquick.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
BAUER102
Join Date: 2010-04-03
Post Count: 5936
#115362609
Sunday, October 13, 2013 8:26 AM GMT
github DOT KOM SLASH BAUER102 SLASH love2d-classes SLASH blob SLASH master SLASH Switch.lua ok?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right