Selectors doesn't contain condition

Hi,

I am having below selector,

<webctrl name='conditions[variable][text1]' tag='SELECT' />

“variable” text in the above selector is a variable. I want the value of text1 to be anything apart from col_to. Can you please help with creating the selector for same.

Thanks!

Hi @Kapil

Try to use the following approach:

  1. Use a variable (e.g., myVariable) for the dynamic part of the selector.
  2. Check if myVariable is not equal to "col_to" using an If condition.
  3. Dynamically build the selector using the Assign activity:
selector = "<webctrl name='conditions[" & myVariable & "][text1]' tag='SELECT' />"
  1. In the If condition, check if the variable is not “col_to”:

If (myVariable <> “col_to”) Then
Use the dynamically generated selector here
End