Hello!
I'm trying to write a VB script that will use a variable initialized within a flow. My variable is a list of numeric elements (%List%). I want the script to check if a given value in the %List% is less than 0 and if so, to save its position as a result. If the next value meets the same condition, its position in the list is to be appended to the result after the decimal point. Unfortunately, I run into a problem - I can't use the %List% variable. Depending on the way I try to use it, I get compilation errors. An example of a script I tried to use:
Dim list
list = Split(%List%, ",")
Dim result
result = ""
For i = 0 To UBound(list)
If CInt(list(i)) < 0 Then
If result = "" Then
result = i
Else
result = result & "," & i
End If
End If
Next
WScript.Echo result
I will be very grateful for any help!
Best regards!
Iza