I am using Visual Studio Enterprise 2019.
I have a number of columns that I want to show/hide depending on a value that sometimes could be null. Since there doesn't seem to be a coalesce statement in the expression editor, I decided to google it. I found this link...
https://stackoverflow.com/questions/19234993/ssrs-expression-replace-null-with-another-field-value
So, I created the function (code below or in link) under the Report Properties Code. When I use it in the expression builder, I get the red squiggly line under the Isnull. When I preview my report, it seems to work perfectly. I have even deployed the report to the report server and it works there too. Is there a way to get rid of the red squiggly line (or, actually, not have it look like it is an error)? If someone else modifies the report in the future, I don't want them to get stuck thinking there is something wrong.
In my iif statement, I am using a number of columns and parameters that are specific to my report. So, I tested the following, which anyone should be able to use, and it still shows a red squiggly line under the function name.
=iif(Code.IsNull(1,0) = 1, TRUE,FALSE)
Public Function IsNull(input As Object, defaultValue As Object) As Object
Return IIf(input Is Nothing, defaultValue, input)
End Function