Ternary operator
FQL supports a ternary operator that can be used for conditional evaluation. The ternary operator expects a boolean condition as its first operand, and it returns the result of the second operand if the condition evaluates to true, and the third operand otherwise.
example.fql
u.age > 15 || u.active == true ? u.userId : NONE
There is also a shortcut variant of the ternary operator with just two operands. This variant can be used when the expression for the boolean condition and the return value should be the same:
example.fql
u.value ? : "value is NONE, 0 or not present"