Greater Then

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
PaulV
Posts: 1
Joined: Fri Nov 24, 2006 12:46 pm

Greater Then

Post 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?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post 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.

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post 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).

User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

CAN

Post 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

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »


Post Reply