title: Javascript in google spreadsheet
body: <p>I'm creating a bracket for 2014 world cup using google spreadsheet. Google spreadsheet has a script editor which runs javascript i'm a complete newbie to javascript and need help creating a function or functions the following formulas into javascript:</p>
  <pre><code>//(B10 != B2 or B3) = 0 
  
  //(J14 != B2 or B3) = 0
  
  //(B10 = B2 or B3) = 2
  
  //(J14 = B2 or B3) = 4
  
  //(B10 = B2) and (J14 = B3) = 6
  </code></pre>