<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-detected-decoding-type="latin-charset"
    style="direction: ltr;" text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 11/02/2019 10:42, Tim Sutton wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:DF32AB48-3808-47C7-943B-DAA0041867E2@qgis.org">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hi<br class="">
      <div><br class="">
        <blockquote type="cite" class="">
          <div class="">On 11 Feb 2019, at 10:38, Havard Tveite <<a
              href="mailto:havard.tveite@nmbu.no" class=""
              moz-do-not-send="true">havard.tveite@nmbu.no</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class=""><span style="caret-color: rgb(0, 0, 0);
              font-family: Menlo-Regular; font-size: 14px; font-style:
              normal; font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; float: none; display: inline
              !important;" class="">nodata + 1 = nodata</span><br
              style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none;" class="">
            <span style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; float: none; display: inline
              !important;" class="">nodata * 1 = nodata</span><br
              style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none;" class="">
            <span style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; float: none; display: inline
              !important;" class="">nodata AND 1 = nodata</span><br
              style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none;" class="">
            <span style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; float: none; display: inline
              !important;" class="">nodata OR 1 = 1</span><br
              style="caret-color: rgb(0, 0, 0); font-family:
              Menlo-Regular; font-size: 14px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none;" class="">
          </div>
        </blockquote>
        <div><br class="">
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>It might be worth noting that in the GRASS mapcalc module,
      there's a special operator for these situations. From the manpage:</p>
    <ul>
      <li>NULL-values in any arithmetic or logical operation should
        result
        in NULL. (however, &&& and ||| are treated
        specially, as described below).
      </li>
      <li>The &&& and ||| operators observe the following
        axioms even when x is NULL:
        <div class="code">
          <pre>   x &&& false == false
        false &&& x == false
        x ||| true == true
        true ||| x == true
</pre>
        </div>
      </li>
    </ul>
    <blockquote type="cite"
      cite="mid:DF32AB48-3808-47C7-943B-DAA0041867E2@qgis.org">
      <div>
        <div><br class="">
        </div>
        <div>Hmm yes, the OR case should return one!</div>
        <div><br class="">
        </div>
        <div>Regards</div>
        <div><br class="">
        </div>
        <div>Tim</div>
        <div><br class="">
        </div>
      </div>
      <br class="">
      <div class="">
        <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
          font-family: Helvetica; font-style: normal; font-variant-caps:
          normal; font-weight: normal; letter-spacing: normal; orphans:
          auto; text-align: start; text-indent: 0px; text-transform:
          none; white-space: normal; widows: auto; word-spacing: 0px;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px; text-decoration: none; font-size: 18px;"> </span><span
          style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
          font-family: Helvetica; font-size: 14px; font-style: normal;
          font-variant-caps: normal; font-weight: normal;
          letter-spacing: normal; orphans: auto; text-align: start;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: auto; word-spacing: 0px; -webkit-text-size-adjust:
          auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><span><img
              apple-inline="yes"
              id="9ED6AE36-FBD9-4A51-8734-503B6CFF0239"
              src="cid:part2.400D38A2.4BBE39D1@gmail.com" class=""></span>
          <div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
            font-family: Helvetica; font-style: normal;
            font-variant-caps: normal; font-weight: normal;
            letter-spacing: normal; orphans: auto; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            widows: auto; word-spacing: 0px; -webkit-text-size-adjust:
            auto; -webkit-text-stroke-width: 0px; text-decoration: none;
            font-size: 12px; font-variant-ligatures: normal;
            font-variant-position: normal; font-variant-numeric: normal;
            font-variant-alternates: normal; font-variant-east-asian:
            normal; line-height: normal; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div style="font-weight: normal;" class=""><br
                class="Apple-interchange-newline">
              <br class="Apple-interchange-newline">
              <br class="Apple-interchange-newline">
              <br class="Apple-interchange-newline">
              ---</div>
            <div style="font-weight: normal;" class=""><br class="">
            </div>
            <div class=""><b class="">Tim Sutton</b></div>
            <div style="font-weight: normal;" class=""><a
                href="mailto:tim@qgis.org" class=""
                moz-do-not-send="true">tim@qgis.org</a></div>
            <div style="font-weight: normal;" class=""><br class="">
            </div>
          </div>
          <br class="Apple-interchange-newline" style="caret-color:
            rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant-caps: normal; font-weight:
            normal; letter-spacing: normal; orphans: auto; text-align:
            start; text-indent: 0px; text-transform: none; white-space:
            normal; widows: auto; word-spacing: 0px;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; text-decoration: none; font-size: 12px;
            font-variant-ligatures: normal; font-variant-position:
            normal; font-variant-numeric: normal;
            font-variant-alternates: normal; font-variant-east-asian:
            normal; line-height: normal;">
          <br class="Apple-interchange-newline" style="caret-color:
            rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant-caps: normal; font-weight:
            normal; letter-spacing: normal; orphans: auto; text-align:
            start; text-indent: 0px; text-transform: none; white-space:
            normal; widows: auto; word-spacing: 0px;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; text-decoration: none; font-size: 12px;
            font-variant-ligatures: normal; font-variant-position:
            normal; font-variant-numeric: normal;
            font-variant-alternates: normal; font-variant-east-asian:
            normal;">
        </span></div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
+972-523-665918</pre>
  </body>
</html>