Thanks for the fixes.
Tried them and they work.
I must admit that when reading the code this or looked legit.
But when you go back to boolean it makes sense.
TelephoneNumber is null TelephoneNumber not null → False → 0 TelephoneNumber not "" → True → 1
0 or 1 is 1 so it executes the line.
0 and 1 is 0 so it filters accordingly.
Regards.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! I think you found some syntax mistakes in the snippets, and again thanks for pointing them out.
Variable pattern should be:
Format a string should use
and
instead ofor
:Thanks for the fixes.
Tried them and they work.
I must admit that when reading the code this or looked legit.
But when you go back to boolean it makes sense.
TelephoneNumber
isnull
TelephoneNumber not null
→ False → 0TelephoneNumber not ""
→ True → 10 or 1 is 1 so it executes the line.
0 and 1 is 0 so it filters accordingly.
Regards.