How to match the values

hi

iam getting value from Q item as 123

and iam trying to match the values from from an appliacation

application has row items like

456
678
347
67
123

my condition is i want to check all the values from the application then throw exception that values does not match

if matches —then i will do the other procedure

@T_Y_Raju
Hi,
inTransactionItem.SpecificContent(“Name”).ToString=CurrentRow(“ColName”).ToString

Thanks

@T_Y_Raju

In the application inidcate the element which contains the required value and then in place of innertext use a variable and use that selector in check app state…

The variable needa to be assigned with the current value fromthw queue item

So the selector looks something like below

Eg: <webctrl tag='DIV' innertext='{{var}}' />

And assign var as in_Transactionitem.SpecificContent("Key").ToString

Now use the selector in check app state …if found you can continue else throw exception

Cheers

Hi @T_Y_Raju

do:
if:
condition:
in_Transactionitem.specificContent(“ColumnName”).tostring=currentrow(“columnName”).tostring
- log: “The value matches.”
else:
- throw: “The value does not match.”

Hi @T_Y_Raju

Value = “123”
applicationValues = new List() { “456”, “678”, “347”, “67”, “123” }

bool isMatch = false;

foreach applicationValues

if (value == queueValue)

    isMatch = true;

else throw

Hi @T_Y_Raju

  1. Get Queue Item and assign its value to the variable “queueValue”
  2. Extract values from the application and store them in a List(Of String) “applicationValues”
  3. For Each “value” in “applicationValues”(in_Transactionitem.SpecificContent(“Key value in queue”).ToString=currentRow(“colName”).ToString)
    If “value” equals “queueValue” Then
    —> Throw an exception
    Else
    —>Proceed with other procedures