title: Python if in Statement Specifics
body: <p>In short i have a list of items. lets say they have a name of Object1, Object2,....Object10,....Object20 And so on.</p>
  
  <p>This list depending on use input changes starting points, for the example lets say the list packs in the names of all objects from Object18 up to Object28</p>
  
  <p>Im using a statement to select these items from the stored list that goes:</p>
  
  <pre><code>for i in nuke.allNodes():
  if i.name() in hiddenLists:
      i.setSelected(True)
  else:
      i.setSelected(False)
  </code></pre>
  
  <p>Which works generally... trouble is because "in" (for inside the list) doesnt specify i want it to have to match an entire entry of the list, Instead of JUST selecting Object 18-28 it selects Object1 Object2 And Object 18-28 (reason being of course, Object18 and so on begin with Object1, and the 20s with a 2)</p>
  
  <p>I cant pad the strings due to the fact that these are set names a program creates and have to stay the same. my only question is, is there a better operator than in that makes it have to match exactly rather than see Object1 within 'Object18'?</p>