[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] If-clause



Senne,
 
as far as I know, If-Then-Else statements are not possible, but can be implemented with the workaround described at: http://sel.me.wisc.edu/trnsys/mailinglist/archive2003/msg00240.html
 
Regards,
David Ferrari


From: senne plessers [mailto:senne_plessers@hotmail.com]
Sent: Tuesday, 1 September 2009 7:50 PM
To: trnsys-users@cae.wisc.edu
Subject: [TRNSYS-users] If-clause

Dear all,
 
is it possible to create an if-clause in an equation-component that
can use to or-button in the equation?
 
For example: if T < 20°C or Hour of the day > 1000
                  than flow=...
                  else flow=...
                  end
 
Is this possible or do I have to write my own algorithm?
 
Thanks in advance.
 
Best regards,
 
Senne Plessers


Je hele online leven op één stek? Ontdek Windows Live!