title: How to match value against array and set variables?
body: <p>I am trying to set a user's Active Directory city,address,state,zip based on what someone selects for the user's office location. </p>
  
  <p>I have a winform that has various drop down menus for title, department, location.
  When the location is chosen, I want that to automatically set the address,city,state,zip without having to enter it manually. </p>
  
  <p>The location field is stored as <code>$locationcombobox.text</code> which has the following options:</p>
  
  <pre><code>Office
  Office1
  Office2
  Office3
  Office4
  Office5
  Office6
  </code></pre>
  
  <p>My array looks similar to this:</p>
  
  <pre>
  City      State  Office 
  ----      -----  ------ 
  Newark    NJ     Office1
  Portland  ME     Office2
  New York  NY     Office3
  Dallas    TX     Office4
  Denver    CO     Office5
  Atlanta   GA     Office6
  </pre>
  
  <p>When someone selects <code>Office1</code> in the combobox, Id like it to set <code>$city = Newark</code> and <code>$state=NJ</code>.
  I'm sure I am overthinking this, but I don't have much experience with calling arrays.                                                                          </p>