ternary operator in if statement ruby code example Example: ruby ternary operator condition ? true : false