if/if else snippets