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
CASE
The expressions are equivalent (the arrow describes the preferred direction):
CASE WHEN t1 THEN r1 ELSE CASE WHEN t2 THEN r2 ELSE r3 END END
→
CASE WHEN t1 THEN r1 WHEN t2 THEN r2 ELSE r3 END
To keep the following expressions simpler, they are given using ternary notation, i.e. t1 ? r1 : r2 instead of CASE WHEN t1 THEN r1 ELSE r2 END.
t1 ? r1 : r2
CASE WHEN t1 THEN r1 ELSE r2 END
[ ] t ? x : x → x [x] (t ? true : false/null) ? r1 : r2) → t ? r1 : r2 dotnet#34175 [x] (t ? false/null : true) ? r1 : r2) → !t ? r1 : r2 dotnet#34175 [ ] t ? true : false → t == true [ ] t ? false : true → !boolExpr [ ] !boolExpr ? x : y → boolExpr ? y : x [ ] !(t ? x : y) → t ? !x : !y
t ? x : x
x
(t ? true : false/null) ? r1 : r2)
t ? r1 : r2
(t ? false/null : true) ? r1 : r2)
!t ? r1 : r2
t ? true : false
t == true
t ? false : true
!boolExpr
!boolExpr ? x : y
boolExpr ? y : x
!(t ? x : y)
t ? !x : !y
WIP
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The expressions are equivalent (the arrow describes the preferred direction):
→
To keep the following expressions simpler, they are given using ternary notation, i.e.
t1 ? r1 : r2
instead ofCASE WHEN t1 THEN r1 ELSE r2 END
.[ ]
t ? x : x
→x
[x]
(t ? true : false/null) ? r1 : r2)
→t ? r1 : r2
dotnet#34175[x]
(t ? false/null : true) ? r1 : r2)
→!t ? r1 : r2
dotnet#34175[ ]
t ? true : false
→t == true
[ ]
t ? false : true
→!boolExpr
[ ]
!boolExpr ? x : y
→boolExpr ? y : x
[ ]
!(t ? x : y)
→t ? !x : !y
WIP
The text was updated successfully, but these errors were encountered: