Extract assignment from "if" condition