EZP-21768: Changed var comparison to assignment