update if&while code style