PSA: Negative Yes beats Positive No

genericWhen building business rules or workflows you may often need to check if a Two Options field is No… Remember that it is almost always better to check that the field is not Yes instead of is No.  Why? Because a two options field can have 3 possible values… Yes, No, and null.  By testing for is not yes then we simultaneously handle both is no and is null in a single check.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s