Crystal Forum
`if <conditional> true else <falsy> end` throwing error
Help & Support
asterite
May 12, 2021, 9:40am
2
It’s a bug. I think none should compile, you need a semicolon in every case.
show post in topic
Related topics
Topic
Replies
Views
Activity
Deleted
Crystal Contrib
19
1168
September 11, 2023
Why false || true is not the same as 0 || 1
Help & Support
4
490
January 27, 2024
How to Bool
Help & Support
5
557
July 23, 2023
Unexpected token: "DELIMITER_START" was, well, unexpected
Help & Support
3
129
July 24, 2026
Type inference doesn't work inside ternary operator
Crystal Contrib
2
474
October 19, 2019