Added if example in select stagement