mid: Improve variable checking by assigning in the eval instruction.