If Statements
Lesson 17Author : Afrixi
Last Updated : November, 2017
Table of Content
<ul>
<li>Is a false Boolean expression</li>
</ul>
<ul>
<li>Is a true Boolean expression</li>
</ul>
if is_student and is_smart puts "You are a student" elsif is_student and !is_smart puts "You are not a smart student" else puts "You are not a student and not smart" end
>, <, >=, <=, !=, ==
if 1 > 3 puts "number comparison was true" end
if "a" > "b" puts "string comparison was true" end