Add messy and not fully functional implementation of ternary ?: operator