2 Replies Latest reply on Nov 3, 2013 5:48 AM by Sketter

    What is wrong with this expression?

    Sketter

      Title

      What is wrong with this expression?

      Post

           Hi, I'm trying to allow two or more accounts to access a layout.

           My script is this.


           If [Get ( AccountPrivilegeSetName )  =  "reprint" or "admin"]

             Go to Layout [Member Detailed (Reprints)"(Members)]

             Perform Script ["Reprints]"]

           Else

             Show Custom Dialog ["You do not have access."]

           End If

            

           Logically in my mind using  OR sounds right, but it's not, it's only looking at the first variable after the =

           Can anyone help?

            

           Thanks