Adding foreach snippet
if and else snippets