if as modifier « Statement « Ruby






1.using if as a modifier with Boolean operator
2.Output based on if statement
3.test for equality:
4.If the value of age is under 18, the string is printed to the screen.
5.change the order: placing if after puts, and you can drop then and end.