WHERE ConditionA OR ConditionB OR ConditionC
Does it execute ConditionB or ConditionC if ConditionA is true?
EDIT
Here is the actual condition which in a TVF. I want to make sure whether my complex query is not executing if MustNotHaveAllConditions is null or empty.
@MustNotHaveAllConditions = '' OR @MustNotHaveAllConditions IS NULL OR
Patient.Id NOT IN
( ... complex sql query
)