How to get the Numerical values from the List?

I tried to setup a list with Numerical values list following:
Set NumValues to (3, 5, 7, 11)
Repeat with Each Value of NumValues
Run SomeScripts NumValues
End Repeat
However, (3, 5, 7, 11) is output to the text box in the first cycle instead of each of them in each cycle. Am I missing something here? This approach works fine with String.

Please help.
thanks,
Dennis

Comments

  • Dennis you need to reference the "value" variable within your repeat loop not your list:
    Set NumValues to (3, 5, 7, 11)
    Repeat with Each Value of NumValues
    	Run SomeScripts Value
    End Repeat
    
Sign In or Register to comment.