finished working generating code for ifes and ifElses