Skip to content

feature idea: switch #15

Description

@justinkluever

switch:

something like a switch statement

example:

switch(Value)
 case "a": -- Only when the Value is "a"
   print("A")
 end,
 case "b":
   print("B")
 end
end

example 2:

switch(Value)
    case("a")
        print("A")
        break

    case(2)
        print("B")
        break

    default
        print("Default case")
end

This may be hard to implement tho

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions