[TRNSYS-users] IF-Statement
keilholz, werner
werner.keilholz at cstb.fr
Tue Jan 18 00:35:19 PST 2011
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 at cae.wisc.edu [mailto:trnsys-users-bounces at 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 at cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users
More information about the TRNSYS-users
mailing list