Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

Ruby conditionals

is_student = false
is_smart =false

if is_student and is_smart
	puts "you are a smart student
elsif is_student and !is_smart
	puts "You are not a smart student"
else
	puts "Not a student and not smart"
end

if 1 > 3 
	puts "Number comparison is True"
end
 
PREVIOUS NEXT
Tagged: #Ruby #conditionals
ADD COMMENT
Topic
Name
3+2 =