Carrot reference
Operators
?: (elvis)
evaluates the truthiness of the first expression, and returns its value if that value is truthy if the value of the first expression is not truthy, it returns the value of the second expression syntax condition ? iffalse condition the conditional expression to be evaluated for truthiness iffalse the expression to be evaluated if condition is not found to be truthy sample usage name pref ? name first returns someone's preferred first name if available, otherwise returns their formal first name see also = (equals) docid 50o8vwta5zp6sv8dqdwjl != (not equals) docid\ g6prxutgm2vrcnw7hcqry ? (ternary) docid\ mjphsjn60dsm44oo2welj