- if
- else
- end
if statement
examples/conditionals/if.cr
age = 22 if age < 21 puts "Sorry you cannot dring alcohol in the US." else puts "Can drink alcohol in the US as well." end
age = 22 if age < 21 puts "Sorry you cannot dring alcohol in the US." else puts "Can drink alcohol in the US as well." end