Confused by oscilloscope - square wave signal to RPM

//if (dimmer = LOW){
if (dimmer == LOW){

== for comparison
= for assignment