Page 1 of 1

Posted: 08 Sep 2011, 16:33
by waolelaid
Hi , as i'm not able to make script i thought that i could
make a condition with the equation module but i don't understand
how to do
i constated that the inlet "a" is 0 or 1 and when is 0 it sends the number strored in "b"
and when "a" is 1 it sends the number stored in "c"
but i don't know what is the function of the inlet "d"
i supposed that the "d" could be the add of c and b
but i don't understand how it works
so if somebody can give me an example a drawing
it helps me a lot to understand
thanx :D

Posted: 08 Sep 2011, 16:46
by nay-seven
those inlet are only variable, it's you who define the equation in the first text inlet
you can wrote for example a+b*c/d
Image

Posted: 08 Sep 2011, 17:46
by Floego
The equation module is really cool! :cool:

yes, it is possible to use conditional function,

for example, you can write this expression inside the [equation] : [large]if((a<b),a+1,a=b)[/large]

that means: if the value of 'a' is less than the value of 'b', then do 'a+1' else do 'a=b'

the result of this conditional goes directly to the output outlet.

you even could make a feedback connection between the outlet and any inlet (a,b,c,d) if you need to create an iterative operation.

in that case you need to take the precautions to keep the loop out from overflowing and you should try to use a 'reset' button to keep the module ready and useful.

Image

Posted: 08 Sep 2011, 22:10
by waolelaid
Hi , thanx very much nay and floego
i dind't understand that it was necessary to write
the equation in the case :rolleyes:
And nevertheless I read but don't understand
all very well
thanx again good evening :D