We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes it is necessary to use "switch/case", because with a large monotonous list, "if/else if" overloads the code.
I would like to have something like:
{#switch variable} {:case "first"} ... something first ... {:case "second"} ... something second ... {:default} ... other ... {/switch}
Thanks guys!
would make my life easier
The text was updated successfully, but these errors were encountered:
{#switch}
RFC: sveltejs/rfcs#49
Sorry, something went wrong.
Yup, this has come up several times in the past. It's stalled due to lack of agreement on what the syntax would look like.
Thanks guys, I realized that this is an old topic.
No branches or pull requests
Describe the problem
Sometimes it is necessary to use "switch/case", because with a large monotonous list, "if/else if" overloads the code.
Describe the proposed solution
I would like to have something like:
Alternatives considered
Thanks guys!
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: