2 ms·Yes, that. = is for assignment and == is a test. The test inside your if needs == to work.by mimixco 5y agoYes, that. = is for assignment and == is a test. The test inside your if needs == to work.