Add support for ternary operator

Not part of the sponsorin agreement with triagens but was *easy*