Telerik reports – Missing operand before “=”

I am pretty much the go-to-guy in my company when it comes to creating Telerik reports (I don’t know if it’s a good or bad thing) so it was my turn when a new report had to be created for our application.

In it you can evaluate people based on templates. You can print out the evaluation but not the template itself. This had to change. I started working on the report and came across this:

error.png


I started looking into the code and couldn’t find anything strange. This is the code in question:

=IIF(=Fields.Interpretation <> "" and Parameters.includeInterpretations,True,False)

What this code does is basically return true if the Interpretation isn’t empty and we want to include Interpretations. The problem here is the second equal sign (next to Fields.Interpretation). The equal sign tells the reports to evaluate everything after this. In this case it evaluated an if statement. The only problem was this second equal sign which didn’t have anything on it’s left side.

It was just a simple copy-paste error because I used the =Fields.Interpretation in another textbox where this needed to be evaluated. Removing the second equal sign solved the problem and I hope I won’t see this error come up any time soon.

Hope this saves you also a few minutes of your (developer) life.

Until next time, happy coding :)

Check for newer version of stored page issue