Hide When For a Field

I have a field on a form that I need to put a Hide When on.

I want to hide it when it is a New Document

I want to hide it all the time if you have the role of Associate

I want you to be able to see it if it is Not a New Document, Your Role is Specialist, and Email Type = Daily Suspense.

I have tried many ways to do this and I am not getting it right.  Any help would be great.  

This is what I have so far:

@IsNewDoc | @IsMember("[Associate]";@UserRoles) | (!@IsMember("[Specialist]";@UserRoles) & Email_Type !="Daily Suspense" & !@IsNewDoc)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Your boolean logic is wrong on the second part.  If you want to use negative logic, you have to change the operators too.

Remember that (A | B) = (!A & !B).

Try this:

@IsNewDoc | @IsMember("[Associate]";@UserRoles) | !(@IsMember("[Specialist]";@UserRoles) & Email_Type ="Daily Suspense" & @IsNewDoc)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kali958Author Commented:
Just because I still have a hard time with the negative logic, basically the (A | B) (a or b) will still equal the same thing if it does not equal A and does not equal B (!A & !B).

I tried what you put and it worked great, I just had to put the ! in front of the last @IsNew Doc.  

I wish I did not struggle with this logic as much as I but I am grateful for your help on fixing it.  It nice to know there is a place I can ask questions.  Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.