added 'if ..else' snippet