I'll change the rest of the "if (const = var)" to the more readable "if (var == const)".
Is that an Apache style thing? I always code constants on the left, to catch just the typo you made in your example.
I'll change the rest of the "if (const = var)" to the more readable "if (var == const)".