if check in ruby on rails code example
Example 1: ruby if statement
if condition
expression
Example 2: if else ruby
if condition
expression
else
expression
if condition
expression
if condition
expression
else
expression