Added support for if statements in snippets.