Hello,
What is the most efficient means of setting/resetting a flag (i.e. pushbutton pressed, event occurred, etc.) in flowcode?
Thanks,
Mike
Flags
Re: Flags
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
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
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel