update if compare syntax