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

Re: [TRNSYS-users] IF-Statement



Andrey,

You can use type 79 and write into the external file:

if (in(1) ~= 0) out(1) = c else out(1)=1; end

Werner
-----Message d'origine-----
De : trnsys-users-bounces@cae.wisc.edu [mailto:trnsys-users-bounces@cae.wisc.edu] De la part de Andrey Vyshnepolsky
Envoyé : lundi 17 janvier 2011 18:33
À : TRNSYS USERS
Objet : [TRNSYS-users] IF-Statement

Hello,

is it possible to construct an IF-Statement in Trnsys? I want it to use together with the Equation Component. It shall work like that: if the input value is not zero use the calculated output value else set the output value to one.

Regards,

Andrey
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users