I am new to VBScript and a solution we utilise has VBScript to manipulate data
Doing if then else is not a problem but when I have a large data set, with little output I am looking to use some kind array, can I store the values in an array and still utilise if then else
Very basic in requirement but after looking around seem to be getting a little muddled up on syntax
Simple if then else which is fine, but would have to write a lot of if then else
If Input1 = "A1" Then
Output0 = "A"
ElseIf Input1 = "B1" Then
Output0 = "B"
Else
Output0 = "C"
End If
What I need to achieve is, please note values aren't the same and a trim wouldn't be the requirement from the below
If Input1 = "A1,A2,A3" Then
Output0 = "A"
ElseIf Input1 = "B1,B2,B3" Then
Output0 = "B"
Else
Output0 = "C"
End If
Using SQL I would do an IN statement
Filter()would work but if the values varied not so much. For exampleAB1would returnOutput0 = "A"andOutput0 = "B".