SyntaxFix
Write A Post
Hire A Developer
Questions
In a case statement, a , is the equivalent of || in an if statement.
case
,
||
if
case car when 'toyota', 'lexus' # code end
Some other things you can do with a Ruby case statement