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
I have an object that I want to decide to use or not to use, based on some fields. Field A as a decision field and Field B as a value field.
Is it possible to do if-statements on objects?
input.json
{ "companies": [ { "name": "Sillicon Valley", "country": "US" }, ... { "name": "Tech Hub", "county": "Iceland" } ] }
output.json
if country == Iceland:
{ "companies": [ { "name": "Tech Hub" } ] }
The text was updated successfully, but these errors were encountered:
This is a cool idea @ChameleonTartu
Right now its not possible. You could match a whole object. but not do any if magic based on a values' properties.
Maybe we could add a path keyword to our if_statement that defaults to . for current value.
path
if_statement
.
This could be a really strong feature. Lets think of some more usecases and maybe some implementation ideas.
Sorry, something went wrong.
No branches or pull requests
I have an object that I want to decide to use or not to use, based on some fields. Field A as a decision field and Field B as a value field.
Is it possible to do if-statements on objects?
input.json
output.json
if country == Iceland:
The text was updated successfully, but these errors were encountered: