Ruby Tutorial

Ruby If...Else

Conditional Statements

Use conditions to run different code paths based on logical tests.

puts "pass" if score >= 60
Try it Yourself
Run this RUBY example in your local environment or course sandbox.