Added snippet if2

Added if2