if snippet