fixes #40 Implemented new format for <if> tags