If statement Mar 2, 2016 If statement "good" = if true do "good" else "This will" end # nil is default when else is missing nil = if false do "good" end # alternative, one line syntax "good" = if true, do: "good" "else" = if false, do: "good", else: "else" Documentation: Kernel.if/2 See Also: unless