3 Replies Latest reply on Sep 3, 2013 1:59 AM by RachelJacobsen

    using wildcard characters in a script

    RachelJacobsen

      Title

      using wildcard characters in a script

      Post

           Hi 

           I have a very simple script that I'd like to run which would bring up text on a form depending whether or not a title has the word 'District' in it. If the title has the word 'District' anywhere in it, the text "District Office" would appear, otherwise the text "County Office" appears.

           This is the script I wrote.

           If ((State::OfficeName) = "District"; "District Office"; "County Office" )

           It's not working. Since "district" can appear anywhere in the title, I tried using the wildcard character in the script but I received lots of errors with it.

           Help :)