title: Need correct syntax of callback/change to redirect users to respective urls
body: <p>My first post so please take it easy on me ;)...</p>
  
  <p>The following code is a menu that allows me to click on a menu item and be redirected to a specific URL.  Using the code below however, I receive an error that says:</p>
  
  <p>unexpected token ":"&lt;--referring to the line beginning with ret === 0 ?"</p>
  
  <p>If I remove the last two window.location.assign commands it will work for the first two items in the menu.  I'm assuming it's my syntax, what in the heck am I doing wrong?</p>
  
  <p>Thanks!</p>
  
  <h2>Elias</h2>
  
  
              
  
                      4 item MENU
                      
                  
              
  
  <pre><code>    &lt;/div&gt;
  
      &lt;script src="plugin/react-with-addons.min.js" charset="utf-8"&gt;&lt;/script&gt;
      &lt;script src="plugin/react-dom.min.js" charset="utf-8"&gt;&lt;/script&gt;
  
      &lt;script src="plugin/app.js" charset="utf-8"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
      new CA_select({
          selector: document.getElementById('fs_3'),
          iconColor: '#fff',
          bgColor: '#00BCD4',
          items: [
              {class: "fa-thumbs-up"},
              {class: "fa-thumbs-down"},
              {class: "fa-arrow-right"},
              {class: "fa-arrow-left"}
          ],
          callback: true,
          change: (ret) =&gt; {
              ret === 0 ? window.location.assign("https://www.url1.com") : window.location.assign("https://www.url2.com") : window.location.assign("https://www.url3.com") : window.location.assign("https://www.url4.com") : 
          },
  
      });
  
      &lt;/script&gt;
  </code></pre>