5 Replies Latest reply on Jun 17, 2009 8:21 AM by raybaudi

    Checking a list

    kennyferg

      Title

      Checking a list

      Post

      Hi - I am sure this is pretty simple so apologies before I even start!

       

      I need to check whether or not a variable contains a value.

       

      Basically I want to check see whether or not a window with the name "Publications" is already open. I have a variable called $WindowNames which is retrieving a list of the Windows using the 'WindowNames' function and that is working fine. What I want to do is run an If statement which is basically asking "If $WindowNames contains the value "Publications" switch to that window, otherwise open a new window called publiations"

       

      I am just not sure how to 'interrogate' the variable to see if it contains the value "Publications"

       

      Thanks in Advance