Change conditions to template common syntax