If waa is a Nullable(of Integer), why doesn't this work when waa is null?
Iif(waa.HasValue, waa.Value.ToString(), "") |
I get an error "Nullable object must have a value."
Don't tell me Iif is evaluating the true part before the test?
I'm working inside a LINQ literal at the time I get the error:
dim x = <waa><%= CStr(Iif(waa.HasValue, waa.Value.ToString(), "")) %></waa> |