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

jq :how to nest multiple layers of if #112

Open
zhouhuihua526 opened this issue Jun 9, 2021 · 0 comments
Open

jq :how to nest multiple layers of if #112

zhouhuihua526 opened this issue Jun 9, 2021 · 0 comments

Comments

@zhouhuihua526
Copy link

zhouhuihua526 commented Jun 9, 2021

I want if can be nested below if
For example: {"a": true, "b":{"c":c}}
If a is true

  • If c is in the b object, output the value of c
  • If c is not in the b object, then output false
    E.g:
    if a
    - if b
    -- then
    Can it be achieved?
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

1 participant