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
?:
Elvis operator works on empty strings but not on null, i.e. "null"?:"hi" will result in null but ""?:"hi" will result in hi.
"null"?:"hi"
null
""?:"hi"
hi
I also tested it with creating null by indexing an array ([][1]), to make sure it is not just that the string "null" is handled differently.
[][1]
"null"
(defwindow test :monitor 0 (label :text {"[]"[1]?: "hi"}))
Should show hi but shows null
I noticed that while implementing #622 in yuck.
The text was updated successfully, but these errors were encountered:
&&
null and the string null are treated the exact same way by simplexpr IIRC, there is no json value only json operators
Sorry, something went wrong.
Thought so too, just wanted to make sure.
This was fixed since 0.4.0
No branches or pull requests
Checklist before submitting an issue
Description of the bug
Elvis operator works on empty strings but not on null, i.e.
"null"?:"hi"
will result innull
but""?:"hi"
will result inhi
.I also tested it with creating null by indexing an array (
[][1]
), to make sure it is not just that the string"null"
is handled differently.Reproducing the issue
Expected behaviour
Should show
hi
but showsnull
Additional context
I noticed that while implementing #622 in yuck.
The text was updated successfully, but these errors were encountered: