resolve the if block, ready to process the return value