ref() returns a string, not a number, so use 'eq'.
In reply to Re: eq or == with references by rrwo in thread eq or == with references by Anonymous Monk