#Create an array of strings values = "Option 1","Option 2","Option 3" # Read the array length numvalues = arraylength(values) if numvalues != 3 then failed endif # Loop for each value in the values array i = 0 while i < arraylength(values) do if "Option 2" == values[i] then # Do something different for Option 2 sleep(10) if i != 1 then failed endif endif i++ sleep(1) endwhile # Check a value if "Option 2" == values[0] then failed endif # Use array values in a sprintf command ret = sprintf("%s,%s,%s",values[0],values[1],values[2]) if ret != "Option 1,Option 2,Option 3" then failed endif sleep(10)