update if condition