Changes

Jump to: navigation, search

Ruby Flow Control

8 bytes added, 19:04, 19 November 2007
The Ruby if Statement
The ''if'' statement is the most basic of the Ruby control structures. ''if'' statements simply specify a section of Ruby script to be executed when a specified criteria is met. The syntax for an ''if'' statement is as follows:
if ''expression'' then<br>&nbsp;&nbsp;''ruby code''<br>
end

Navigation menu