Ternar means three members. You must have a condition, a true part and a false part. It replaces the if condition, then the true else part is false. You cannot leave the third part. In 5.3 there is a shortcut that allows you to exclude the true part if the condition can be used also as the true part, but it still has three conditions.
source share