SyntaxFix
Write A Post
Hire A Developer
Questions
Since everything is an expression, and thus results in a value, you can just use if/else.
if/else
a = if true then 5 else 10 a = if false then 5 else 10
You can see more about expression examples here.