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

This commit is contained in:
Mattias Wadman authored and GitHub committed 2023-07-04 07:51:29 +09:00
1 parent 4dc2a2fb9d
commit 12ce4e3b54
4 files changed
+388 -391

No files matched your search

+7
View File
@@ -1116,6 +1116,13 @@ null
7
[7]
[if false then 3 elif false then 4 end]
7
[7]
[if false then 3 elif false then 4 else . end]
7
[7]
[.[] | [.foo[] // .bar]]
[{"foo":[1,2], "bar": 42}, {"foo":[1], "bar": null}, {"foo":[null,false,3], "bar": 18}, {"foo":[], "bar":42}, {"foo": [null,false,null], "bar": 41}]