<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff 
size=2>Sorry, I fixed the typo in the expression. It should 
say:</FONT></SPAN></DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff size=2>if 
(#PA("Glazing Percentage") == 0.4)<BR>then #L("Y") = 4.37<BR>else #L("Y") = 4.37 
- 1.12*(#PA("Glazing Percentage") - 0.4)<BR>endif</FONT></SPAN></DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=962011519-19112008><FONT face=Univers color=#0000ff size=2>And 
no, that didn't fix it.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> equest-users-bounces@lists.onebuilding.org 
[mailto:equest-users-bounces@lists.onebuilding.org] <B>On Behalf Of 
</B>Matutinovic, Luka<BR><B>Sent:</B> Wednesday, November 19, 2008 1:47 
PM<BR><B>To:</B> equest-users@lists.onebuilding.org<BR><B>Subject:</B> 
[Equest-users] Defining window properties using if-then 
statements<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>I'm trying to 
automatically adjust my window size based on a global parameter called "Glazing 
Percentage".&nbsp; The width of the window is fixed and the height is defined by 
the following expression:</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>4.47*(#PA("Glazing 
Percentage")/0.4)</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>However, a large 
glazing percentage leads to problems since the larger window takes up space in 
the plenum.&nbsp; So I want to fix this by adjusting the Y coordinate of the 
window.&nbsp; To do this, I tried creating the following 
expression:</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>if (#PA("Glazing 
Percentage") == 0.4)<BR>then #L("Y") = 4.37<BR>else #L("Y") = 4.37 - 
(1.12*("#PA("Glazing Percentage) - 0.4))<BR>endif</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>When glazing 
percentage is set to 0.4, the above expression sets Y to 0.00.&nbsp; As soon as 
I change it to says 0.5, eQuest crashes. </FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>The math is 
correct, but there's something wrong with my syntax.&nbsp; Can anyone please 
help?</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>I've attached the 
pd2 and inp files for reference.</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers 
size=2>Luka</FONT></SPAN></DIV></BODY></HTML>