I am a very beginner user of Processing. I am using Daniel Shiffman's library to decode QR codes, and I would like to add some lines in the code to retrieve the decoded string from the QR image as a variable to use in an 'if' argument. In this way if the decoded string matches some given strings I could use it as a trigger for another action.
As I am a beginner, this action would be (for now) to simply print the string.
I tried using it like this:
if (decoder.getDecodedString()="myname") {
println("myname");
}
and all that I get is a "The left-hand side of an assignment must be a variable".