Fun with keyword expressions

5 posts / 0 new
Last post

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 www.pathfinder-ea.com
134 South Fitzhugh Street
Rochester, NY 14608 [cid:image005.png at 01D5E0C8.899063C0] Ask me why Carbon Fee & Dividend may be right for you.

Bill Bishop's picture
Offline
Joined: 2012-02-25
Reputation: 7

A brief eQuest expression BDL Boolean Operator reference, which others may find handy:
[cid:image002.png at 01D5E19D.EAF111C0]

[cid:image004.jpg at 01D5E19D.EAF111C0]
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
15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219

[cid:image006.png at 01D5E19D.EAF111C0]

Nicholas Caton2's picture
Offline
Joined: 2019-03-25
Reputation: 0

Bonus points if anyone has ever used the bitwise operators.

On Wed, Feb 12, 2020 at 1:14 PM Nicholas Caton via Equest-users <

Aaron Powers2's picture
Offline
Joined: 2011-09-30
Reputation: 0

If the last submission didn?t totally make sense? this revision may or may not help:

[cid:image001.png at 01D5E1C4.37F7BD40]

[cid:image002.jpg at 01D5E1C4.37F7BD40]
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
15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219

[cid:image003.png at 01D5E1C4.37F7BD40]

Nicholas Caton2's picture
Offline
Joined: 2019-03-25
Reputation: 0

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
15200 Santa Fe Trail Drive
Suite 204
Lenexa, KS 66219

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

Nicholas Caton2's picture
Offline
Joined: 2019-03-25
Reputation: 0