add condition to new snippet snippet