I have a loop from 1 to 100000. Whenever the Loop Index has the value "5" in any of the digits of the Loop Index, then the Loop Index should increase by 1. However, the codes below don't seem to work. Any help would be appreciated.
LOOP LoopIndex FROM 1 TO 100000 STEP 1
Text.FromNumber Number: LoopIndex DecimalPlaces: 0 UseThousandsSeparator: False FormattedNumber=> LoopIndex_Text
IF Contains(LoopIndex_Text, 4, True) THEN
Variables.IncreaseVariable Value: LastIndex IncrementValue: 1
END