Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
you can do this
If(not Contains(ToText([Approvals Needed:]),"Sales"),true)
The not just reverses the result form True to false or false to true.
But for a Boolean result, you don't need the IF
For example, your original
If(Contains(ToText([Approvals Needed:]),"Quality Assurance") and Contains([Approvals Logged],"Quality Assurance"),true)
could also be written
Contains(ToText([Approvals Needed:]),"Quality Assurance")
and
Contains([Approvals Logged],"Quality Assurance")
just easier to read
That is basically a statement you are making and QuickBase decides if you are telling the truth and return true or else calls you a liar and returns false.
So on your second test
not Contains(ToText([Approvals Needed:]),"Sales")
will be true if the approvals do not need sales approval.
If(not Contains(ToText([Approvals Needed:]),"Sales"),true)
The not just reverses the result form True to false or false to true.
But for a Boolean result, you don't need the IF
For example, your original
If(Contains(ToText([Approvals Needed:]),"Quality Assurance") and Contains([Approvals Logged],"Quality Assurance"),true)
could also be written
Contains(ToText([Approvals Needed:]),"Quality Assurance")
and
Contains([Approvals Logged],"Quality Assurance")
just easier to read
That is basically a statement you are making and QuickBase decides if you are telling the truth and return true or else calls you a liar and returns false.
So on your second test
not Contains(ToText([Approvals Needed:]),"Sales")
will be true if the approvals do not need sales approval.
WesMcAda4
8 years agoQrew Champion
Thank you for giving me what I needed. This is a formula that I ended up with, and it seems to be working:
If(not Contains(ToText([Approvals Needed:]),"Sales") or
(Contains(ToText([Approvals Needed:]),"Sales") and Contains([Approvals Logged],"Sales"))
,true)