if condition on share