Flags

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

Moderators: Benj, Mods

Post Reply
mfun
Posts: 15
Joined: Tue Sep 30, 2008 3:06 pm
Contact:

Flags

Post by mfun »

Hello,
What is the most efficient means of setting/resetting a flag (i.e. pushbutton pressed, event occurred, etc.) in flowcode?
Thanks,
Mike

Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times
Contact:

Re: Flags

Post by Ron »

Hi,

I am not sure but check out this post, I think I asked same question some time ago in a slightly different way.

http://www.matrixmultimedia.com/mmforum ... f=5&t=4209

Ron

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:

Re: Flags

Post by Benj »

Hello

If you want to keep it simple then you can simply use a input icon to read a single pin. Then use a decision box and simply put the variable name into the decision icon.
Then if the variable is anything other then 0 your decision will equal yes. This will also act to clear the flag because the input variable is refreshed by the input icon every time around the loop.

mfun
Posts: 15
Joined: Tue Sep 30, 2008 3:06 pm
Contact:

Re: Flags

Post by mfun »

Hi Benj and Ron,

Thanks to both of you gentlemen for the help.

Best Regards,

Mike

Post Reply