Updated pascal templates for if, if..else and for.