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

Hi, I would like to output with a smart component different numbers in a group output. I want to do something similar to:

array of specific numbers = [11,12,13,14];

IF(input1 has a positive edge) THEN
    IF(group output is 14) set group output to 11;
    IF(group output is less than 14) set group output +1;
ENDIF

Anyone has an idea? I tried a lot without success.

Hello,
To simplify your Station Logic, you can use RSLuaScript SmartComponent.
You will find it in Add-Ins tab.

@DenisFR I saw this on the RobotApps page and saw this notification there:

Hello, Thank you for uploading your attachment, unfortunately it seems it was not uploaded successfully so it cannot be downloaded, please try the upload again if possible. Best regards, RobotApps
.
Have you noticed this?

@lemster68 : Just test and it works for me…
Do you download it from here:
https://robotapps.robotstudio.com/#/viewApp/c19617d2-d850-4522-90ac-3fd3e8c75dff

I’ve noticed that download from RobotStudio don’t works some times.

I did not try to download, I just noticed that message and thought that I would point it out to you.

Yes, the first time the upload failed.
Are you in the team managing this?
Maybe we can continue with direct message to not pollute this thread.

No, I am just another programmer out in the big blue world. :slight_smile: