1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Support optional else-branch for if-then-elif-end (#2598)

This commit is contained in:
Mattias Wadman
2023-07-04 00:51:29 +02:00
committed by GitHub
parent 4dc2a2fb9d
commit 12ce4e3b54
4 changed files with 388 additions and 391 deletions

View File

@@ -2147,7 +2147,7 @@ sections:
`if A then B end` is the same as `if A then B else . end`.
That is, the `else` branch is optional, and if absent is the
same as `.`.
same as `.`. This also applies to `elif` with absent ending `else` branch.
Checking for false or null is a simpler notion of
"truthiness" than is found in JavaScript or Python, but it