Fixed #23913 -- Deprecation of `=` comparison in `if` template tag