Home
Documentation
Packages
MOOCode, Original
/* Some MOOcode syntax. * This syntax is as specified in the LambdaMOO Programmer's * Manual, with a few, minor Stunt-specific extensions. */ 1; 2.0; #3; "four"; E_PERM; /* this is a comment */ list = {1, 2, 3, 4}; list[1] = "one"; map = ["one" -> 1, "two" -> 2, "three" -> 3]; map["one"] = "one"; if (condition) statement; statement; endif for x in (collection) statement; statement; endfor for x in [begin..end] statement; statement; endfor while (condition) statement; statement; endwhile try statement; statement; except exception (ANY) statement; endtry `{foo, ?bar = 1, @baz} = args ! E_ARGS'; notify(player, "test 1 2 3"); return #-1;