[Runtime] do comparison not asignment in if statement

Subtle typo fix.