RobotStudio event

SmartComponent: How to set a group output by a positive edge?

EricH Germany
edited February 2020 in RobotStudio
Hi, I would like to output with a smart component different numbers in a group output. I want to do something similar to:

<code>array of specific numbers = [11,12,13,14];<br><br>IF(input1 has a positive edge) THEN<br>    IF(group output is 14) set group output to 11;<br>    IF(group output is less than 14) set group output +1;<br>ENDIF<br>
Anyone has an idea? I tried a lot without success.