Skip to content
New issue

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

Switch case scenario #299

Open
rajkra opened this issue Apr 24, 2024 · 1 comment
Open

Switch case scenario #299

rajkra opened this issue Apr 24, 2024 · 1 comment

Comments

@rajkra
Copy link

rajkra commented Apr 24, 2024

I have input json like
Array{[
….
….
“Code”:”CA”],
[
….
….
“Code”:”TX”
]
}

While transforming how to have a switch case kind that converts these code CA to California and TX to Texas. Lets say we have these names fixed how to achieve this using JUST

@Courela
Copy link
Contributor

Courela commented Jun 22, 2024

There's no such thing as a switch/case method. You can achieve this with multiple 'ifcondition's, but that can become cumbersome with only a few options.
Probably the best option is to create a custom function that does what is intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants