Finished the ifthenelse arc