Introduction to Ruby Conditionals
Too Long; Didn't Read
Ruby syntax provides the necessary elements to translate any conditional programming sequence into manageable and easy to read lines of code. The if statement evaluates anything we put in front of him, if the result returnsor(null) then we continue with the next condition, in this case(else if) and the same process applies, if no condition is, the statement is executed. The case statement is another Ruby conditional that can be used as an alternative to if / unless. The expression acts as a question and the outcome is determined by the answer to that question.