title: Get a conditional result
body: <p>Adding detail.
  I have a spreadsheet like this:</p>
  <pre><code>B           C       D       E       F   G           H   
  Date        Time    Kwh $/KwCost        Hours/MonthsCost/Kwh
  2021-01-01  0:15    0.69    $0.00   0   months      $0.15
  2021-01-01  0:30    0.51    $0.00   0   11-12,1-5   $0.05
  01/08/21    0:45    0.3     $0.00   0   hours   
  2021-01-01  1:00    0.76    $0.00   0   06-08,15-20 ```
  </code></pre>
  <p>The rules: if the month # is in g3 and the hour# is in g5 then $h$2.</p>
  <p>I am using</p>
  <p><code>=iF (LSTOR(MONTH(c2),$h$3)= MONTH(c2)) and (LSTOR(HOUR(d2),$h$5)=HOUR(d2)) then $i$2 else $i$3</code></p>
  <p>but I am getting</p>
  <blockquote>
  <p>509   Missing operator    Operator is missing, for example, &quot;=2(3+4) * &quot;,
  where the operator between &quot;2&quot; and &quot;(&quot; is missing.)</p>
  </blockquote>
  <p>Can someone show me where the error is?</p>