codegen for TrenaryExpression

Implemtend Codegen for TernaryExpression
I need to make it prettier though.