AnsweredAssumed Answered

Checking a list

Question asked by kennyferg on Jun 16, 2009
Latest reply on Jun 17, 2009 by raybaudi


Checking a list


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