<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_declaration_expressn_ternaryif(self, cond, iftrue, iffalse, es):
 """ Classic if statement. This needs to be rearranged. In wdl, this looks like: if <condition> then <iftrue> else <iffalse> In python, this needs to be: <iftrue> if <condition> else <iffalse> :param cond: :param iftrue: :param iffalse: :param es: :return: """

        es = es + self.parse_declaration_expressn(iftrue, es='')
        es = es + ' if ' + self.parse_declaration_expressn(cond, es='')
        es = es + ' else ' + self.parse_declaration_expressn(iffalse, es='')
        return es