[add] if statement snippet