Replaces an if statement with a ternary statement. In some situations it may be more concise and readable to use a ternary statement.