I have a loop starting from 1 to 10000 with step 1. However, whenever the value "5" appears in any of the digits of the loop index, e.g. 5, 55, 151, then the loop index should increase by 1.
Below are the codes, but they do not work as desired. Any help would be appreciated.
LOOP LoopIndex FROM 1 TO 10000 STEP 1
Text.FromNumber Number: LoopIndex DecimalPlaces: 0 UseThousandsSeparator: False FormattedNumber=> LoopIndex
IF Contains(LoopIndex, 5, True) THEN
Variables.IncreaseVariable Value: LastIndex IncrementValue: 1
END
.....