I want to compare debit acc and credit columns to check if any debit acc is getting credited first

Hi, I want the bot to iterate through the debit accounts and check if any debit acc is getting credited in the credit columnn…if so then that transaction will take place first..I just want a logic I can apply

ex
debit acc|debit amount|Credit acc
123 |500 |456
456 |200 |345
345|300 |444

Hi @manisha.k.chand

Can you try this

DebitAcc = CurrentRow("Debit Acc").ToString

If : dt.AsEnumerable.Any(Function(x) x("Credit Acc").ToString.Equals(DebitAcc))

Input:

Output:

Regards,

Hi it works for checking if the debit account is matching the credit acc in other column but what if I want to print out the other values of the same credit row that has matched with the debit acc.

@manisha.k.chand
some details are maybe more to clear

However, we recommend getting familiar with data joins

and depending on the use case details maybe setting up

  • lookups
  • transcedence chains, self joins

can help.