[Equest-users] Fun with keyword expressions

Nicholas Caton Nicholas.Caton at se.com
Wed Feb 12 15:28:45 PST 2020


I thought that was normal?

PARAMETER
   "Aaron has money" = "FALSE"  ..
PARAMETER
   "Nick has money" = "FALSE"  ..

…

{if (#PA(“Aaron has money”) || #PA(“Nick has money”))
   then switch(#PA(“Aaron has money”))
     case “TRUE”  : “Next round is on Aaron!”
     case “FALSE” : “Next round is on Nick!”
  else “Put it on Bill’s tab!”
  endif}

[cid:image001.jpg at 01D5E1C9.DEAA5A80]
Nick Caton, P.E., BEMP
  Senior Energy Engineer
  Energy and Sustainability Services
  Energy Performance Contracting
D
M
E

913 . 564 . 6361
785 . 410 . 3317
nicholas.caton at se.com<mailto:nicholas.caton at se.com>
15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219

[cid:image002.png at 01D5E1C9.DEAA5A80]


From: Aaron Powers <caaronpowers at gmail.com>
Sent: Wednesday, February 12, 2020 12:55 PM
To: Nicholas Caton <Nicholas.Caton at se.com>
Cc: Bishop, Bill <bbishop at pathfinder-ea.com>; equest-users at lists.onebuilding.org
Subject: Re: [Equest-users] Fun with keyword expressions


[External email: Use caution with links and attachments]

________________________________


Bonus points if anyone has ever used the bitwise operators.

On Wed, Feb 12, 2020 at 1:14 PM Nicholas Caton via Equest-users <equest-users at lists.onebuilding.org<mailto:equest-users at lists.onebuilding.org>> wrote:
A brief eQuest expression BDL Boolean Operator reference, which others may find handy:
[cid:image003.png at 01D5E1C9.DEAA5A80]

[cid:image004.jpg at 01D5E1C9.DEAA5A80]
Nick Caton, P.E., BEMP
  Senior Energy Engineer
  Energy and Sustainability Services
  Energy Performance Contracting
D
M
E

913 . 564 . 6361
785 . 410 . 3317
nicholas.caton at se.com<mailto:nicholas.caton at se.com>
15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219
[cid:image002.png at 01D5E1C9.DEAA5A80]


From: Equest-users <equest-users-bounces at lists.onebuilding.org<mailto:equest-users-bounces at lists.onebuilding.org>> On Behalf Of Bishop, Bill via Equest-users
Sent: Tuesday, February 11, 2020 11:12 AM
To: equest-users at lists.onebuilding.org<mailto:equest-users at lists.onebuilding.org>
Subject: [Equest-users] Fun with keyword expressions


[External email: Use caution with links and attachments]

________________________________


Let’s have some fun! Share your creative keyword expressions with the group!

One of the features of eQUEST that I most enjoy is the ability to write custom keyword expressions. For example, here’s an expression for WINDOW:HEIGHT :
if(#SV(#P3S())>2) then 5.33
  else 10.50 endif
-2*#L("FRAME-WIDTH")
The expression assigns different heights depending on which floor the window is on. (#P3S is the great-grandparent of the window. FLOOR-> SPACE-> WALL-> WINDOW.)
Note that you can use operators outside of If-then and switch statements. In this case, since WINDOW:HEIGHT is the height of the glazed part of the window, the expression subtracts twice the frame width after evaluating the if-then statement.

Your turn…

~Bill

William Bishop, PE, BEMP, BEAP, CEM, LEED AP
Senior Energy Engineer

[Pathfinder-EA-logo-2]T: (585) 698-1956                        F: (585) 325-6005
bbishop at pathfinder-ea.com<mailto:wbishop at pathfinder-ea.com>        www.pathfinder-ea.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pathfinder-ea.com%2F&data=02%7C01%7CNicholas.Caton%40se.com%7C2177ae42675c4d20460808d7afed1703%7C6e51e1adc54b4b39b5980ffe9ae68fef%7C0%7C0%7C637171305134888490&sdata=ghyXNauLdC8J3c5LfTLQftsIlWSduxlrewwbL1oSvOc%3D&reserved=0>
134 South Fitzhugh Street
Rochester, NY 14608               [cid:image006.png at 01D5E1C9.DEAA5A80]         Ask me why Carbon Fee & Dividend may be right for you.


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
______________________________________________________________________
_______________________________________________
Equest-users mailing list
http://lists.onebuilding.org/listinfo.cgi/equest-users-onebuilding.org<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.onebuilding.org%2Flistinfo.cgi%2Fequest-users-onebuilding.org&data=02%7C01%7CNicholas.Caton%40se.com%7C2177ae42675c4d20460808d7afed1703%7C6e51e1adc54b4b39b5980ffe9ae68fef%7C0%7C0%7C637171305134888490&sdata=furNO8kRnojRufkfuoxYWfbR9l7PeJT%2Filq%2FLIvyDd0%3D&reserved=0>
To unsubscribe from this mailing list send  a blank message to EQUEST-USERS-UNSUBSCRIBE at ONEBUILDING.ORG<mailto:EQUEST-USERS-UNSUBSCRIBE at ONEBUILDING.ORG>

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1794 bytes
Desc: image001.jpg
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 8477 bytes
Desc: image002.png
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 27467 bytes
Desc: image003.png
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 1794 bytes
Desc: image004.jpg
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 1881 bytes
Desc: image005.jpg
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 1554 bytes
Desc: image006.png
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20200212/e0a68474/attachment-0002.png>


More information about the Equest-users mailing list