Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.
Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.
Thank you for visiting and, as always, we hope this website was of some use to you!
Kind Regards,
Joel Lipman
www.joellipman.com
Is it possible to make a "OR" in the IIF statement like this:
=IIF(field > 1 OR field < 5,true,false)
Thanks in advance:)
Hi Steve, Thanks for the comment. The nested if-then-else statements I use have to sit in the middle part of the statement.
[code]
IIf(
Fields!MyFieldName.Value = 0,
IIf(Fields!MyFieldName.Value = false, False, True),
Fields!MyFieldName.Value
)
[/code]
Also the code you posted is just missing a closing bracket/parenthesis at the end.
What about nesting IF's? I can't seem to get it to work for me.
=IIf(Fields!addLine1.Value =" ",Fields!addLine3.Value, iif (Fields.Myvalue,0,10)