Most programming languages uses = to copy a value into whatever whatever you put on the left side. You did it with TooClose, which you set to true.
But when you compare values as you do with the if statement, you need another operator, otherwise CanReadThis will be set to true and the if statement will always run (or syntax error), making it unnecessary.
Compare operators are typically == and/or === and some languages uses their own like ‘eq’ or other exciting ways.
Languages and compilers works in different ways, but your program could look like this. (When comparing a Boolean you don’t need the operator, you can just write the variable since it’s either true or false)
If (CanReadThis) { TooClose = true; }
For some reason the dollar symbol annoys me so much - I’m fine with underscore and asterisk, but I’ve never found a good flow with the dollar sign.