Why is my IF statement ignoring my conditional?

Assignment =
Test of equality ==