Pdftex Nested If In Algorithm2e Giving Errors Tex Latex Stack

Pdftex Nested If In Algorithm2e Giving Errors Tex Latex Stack