Avatar

Level 10

You need to use 2 equals signs to test a value. One equals sign assigns a value.

So all your if statements like this:

if (this.rawValue = 1){

Should look like this:

if (this.rawValue == 1){