Hide When formula problem

I have searched the forum and found many simliar problems with the Hide When formula however I think I have more of a logic problem than a bug.

I am working on hiding a action in the inbox folder from certein users based on the OU structure. Attached is my code:

@Name([HierarchyOnly];@UserName) =

(UNA/AMERICAS/ACME |

UNB/AMERICAS/ACME |

UNC/AMERICAS/ACME |

UNM/AMERICAS/ACME)

The code works fine when I have only one entry:

@Name([HierarchyOnly];@UserName) =

(UNA/AMERICAS/ACME)

however when I add the second/third/ec… the code breaks and gives me a eror of incorrect operator, number expected.

What am I doing wrong?

TIA

Subject: Hide When formula problem

I don’t know if this will help, but I’ve overcome similar problems in the past by repeating more lines of code than you’d like to. Try this:

@Name([HierarchyOnly];@UserName)=UNA/AMERICAS/ACME |

@Name([HierarchyOnly];@UserName)=UNB/AMERICAS/ACME |

@Name([HierarchyOnly];@UserName)=UNC/AMERICAS/ACME |

@Name([HierarchyOnly];@UserName)=UNM/AMERICAS/ACME

Like I said, it might be wrong, but give it a go!

Subject: RE: Hide When formula problem

Thank you for your help. I was able to resolve this issue by using:@Name([OU2];@UserName)=“UNA” : “UNB” : “UNC” : “UNS”

Subject: Use ":"s instead of "|"s and add ""s around the names…

@Name([HierarchyOnly];@UserName) = “UNA/AMERICAS/ACME” : “UNB/AMERICAS/ACME” : “UNC/AMERICAS/ACME” : “UNM/AMERICAS/ACME”

Subject: RE: Use ":"s instead of "|"s and add ""s around the names…

I’m pretty sure the literal value is actually “OU=UNA/OU=Americas/O=ACME”.

Subject: So then this would work…

@Name([OU2];@UserName) = “UNA” : “UNB” : “UNC” : “UNM”