<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Sherif,</p>
    <p>  It is almost always possible to set such things up using
      boolean operators in equations that you combine together. To write
      the example conditional statement in your email you might do:<br>
    </p>
    isOcc = GT(occ,0.001)<br>
    PPDsmall = LT(PPD,6)<br>
    categoryA = AND(isOcc,PPDsmall)
    <p>but of course you can combine them all into one equation if you
      want:</p>
    <p>categoryA = AND(GT(occ,0.001),LT(PPD,6)) <br>
    </p>
    <p>The result of the equations categoryA will be 1 if both of the
      other conditions are met and 0 otherwise. You can then feed the
      value of categoryA into an integrator to find out how much time
      during the year your building was in that condition</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 07/17/2021 03:44, SHERIF SAIED via
      TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJSajLaEfgV3rPLyNf0T-_RKP_gk82ocd4k=PkeEyL2mMtJctw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><img src="cid:part1.7CDBB4B6.E988F654@tess-inc.com"
          alt="IMG-20210716-WA0042.jpg" class="" width="497" height="89"><br>
        <div>I want to make like this table in trnsys using some
          functions for greater than or smaller than in equator. for
          example if PPD < 6 and signal of occ.=1 then count me the
          hours for this condition on all year and so on ...How are
          these equations to be like? and if I need to use a specific
          type for getting this or just using the equator?</div>
        <div>Regards,</div>
        <div>Sherif</div>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr"><b>Sherif Saied.</b>
                <div><b>Tel: (</b>+2)01004419468 / (+2)01124348957</div>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
  </body>
</html>