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

Re: [TRNSYS-users] (no subject)



Salim,
 
you can 'translate' that equation into
(eql(input,x))*y
 
if you have an if(input=x then y else z) this could be

(eql(input,x))*y+(1-(eql(input,x)))*z
 
Leen
 
On Mon, Feb 15, 2010 at 3:52 PM, salim mokraoui <salim.mokraoui@lermab.uhp-nancy.fr> wrote:

Hi all,

 

I’ve a simple question related to the use of the equation editor in simulation studio. Can we use a condition (if) to define an output from an equation editor ? What is the syntax ? (example: if Input = x then Output = y)

 

Best regards


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