get the related units of if stmt