Implement if in catenation parser.

Closes #194.