add assignment and exp in if