ruby iné, ak
x = 1
if x > 2
puts "x is greater than 2"
elsif x <= 2 and x!=0
puts "x is 1"
else
puts "I can't guess the number"
end
ruby, ak vyhlásenie
if condition
expression
NU
if true
"if statement"
elsif false
"else if, optional"
else
"else, also optional"
end
ak iný ruby
if condition
expression
else
expression