Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Summary
Using the query operator (?) on a logic
value does not return true
like the documentation says.
Steps to Reproduce
if (true??):
Print("Returned true")
else if (Value := true?, not Value?):
Print("Returned false")
Expected Result
Prints “Returned true”.
Observed Result
“Returned false” prints, because true?
returns a value of false
(of type logic
).
Platform(s)
All
Additional Notes
The docs state that the outcome of the expression p?
when p
= true
is “Succeeds and result is true
.”
Unfortunately, fixing this would most likely be a breaking change, so the docs need to be updated.