Page 1 of 1

Greater Then

Posted: Fri Nov 24, 2006 12:53 pm
by PaulV
I am trying to create a system to control a can retort.

I can't figure out the syntax for the > (greater then) symbol in calculations.

I want to use a 'greater then' condition on the calculations, but it is not accepting the symbol.

Any ideas?

Posted: Fri Nov 24, 2006 5:43 pm
by Benj
Hi Paul

I take it your using flowcode to program your system.

Are you using a decision box in which case you will need

Code: Select all

var > var2
Or are you using a C Code box in which case you will need

Code: Select all

if(var > var2){statement;}
If you are using a calculation box then it will fail as this is a comparison not a calculation.

Posted: Mon Nov 27, 2006 11:04 am
by Steve
You can use a greater-than symbol in a calculation icon like this:

y = (x > 3)

This will set y to 1 (true) if x is greater than 3, otherwise it will set y to 0 (false).

CAN

Posted: Mon Nov 27, 2006 3:43 pm
by goldwingers
Hi steve,
Please excuse the content, but what is CAN, is it a new divice to open a tin of Beans? or something totally different, I can see you use a car door on your grapic in V3, but i couldnt find any reference to what it is or does within the help file.

Ian

Posted: Mon Nov 27, 2006 4:03 pm
by Steve