[TRNSYS-users] (no subject)

Mohamed Ayman ayman.mohamed at aalto.fi
Sat Nov 21 09:24:44 PST 2015


If statement is not allowed.
But you can use instead x variable as a flag for the situation.
x=1 if true; then y=5
x=0 if false; then y=10

Then it can be written in Equ as follows

y=5*eql(x,0) +10*eql(x,1)
Similar way is valid for <,> ,=<,=>,~=
You can use "!" To add Comment

From: Hsein Moussawi<mailto:hsein_moussawi at hotmail.com>
Sent: ‎11/‎21/‎2015 16:31
To: trnsys-users at lists.onebuilding.org<mailto:trnsys-users at lists.onebuilding.org>
Subject: [TRNSYS-users] (no subject)

Hello there,
I was wondering if there is certain language for writing expressions in the calculator component inside a trnsys project.
I am trying to make "if...otherwise" expressions for example.
Is this possible?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20151121/8f3088ed/attachment.htm>

More information about the TRNSYS-users mailing list