If you place your code that you want to run instead of the echos, it will only run every five loops.
This script will count the loops until it hits the 5th loop where it will change to the five loop code, reset its count and start counting to five again until the script is stopped.
If you need to run anything before or after the code divergence, you are able to put it safely before or after my script.
{
"Name": "for foroum",
"CreationDate": "2019-12-4",
"Commands": [
{
"Command": "store",
"Target": "true",
"Value": "!errorignore"
},
{
"Command": "store",
"Target": "${Number}",
"Value": "Number"
},
{
"Command": "if_v2",
"Target": "${!LastCommandOK}",
"Value": ""
},
{
"Command": "else",
"Target": "",
"Value": ""
},
{
"Command": "store",
"Target": "1",
"Value": "Number"
},
{
"Command": "end",
"Target": "",
"Value": ""
},
{
"Command": "store",
"Target": "false",
"Value": "!errorignore"
},
{
"Command": "if_v2",
"Target": "(${Number}==5)",
"Value": ""
},
{
"Command": "echo",
"Target": "Place loop 5 code here",
"Value": ""
},
{
"Command": "store",
"Target": "0",
"Value": "Number"
},
{
"Command": "gotoLabel",
"Target": "SkipToLabel",
"Value": ""
},
{
"Command": "end",
"Target": "",
"Value": ""
},
{
"Command": "echo",
"Target": "Put the 4 loop code here",
"Value": ""
},
{
"Command": "label",
"Target": "SkipToLabel",
"Value": ""
},
{
"Command": "storeEval",
"Target": "(${Number} + 1)",
"Value": "Number"
}
]
}
I hope this helps!