Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support "if" without "else" clause #223

Closed
LeonB opened this issue Sep 26, 2023 · 2 comments
Closed

Support "if" without "else" clause #223

LeonB opened this issue Sep 26, 2023 · 2 comments

Comments

@LeonB
Copy link

LeonB commented Sep 26, 2023

Would be nice if gojq also supported this new feature of jq 1.6: jqlang/jq#1825

@itchyny
Copy link
Owner

itchyny commented Sep 26, 2023

It does.

 $ gojq -n 'if . then true end'
null

@itchyny itchyny closed this as completed Sep 27, 2023
@LeonB
Copy link
Author

LeonB commented Oct 2, 2023

@itchyny Thanks! I had an old version of gojq installed 🤦

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

No branches or pull requests

2 participants