Create ternary operator