前提
ForEachRowでcsvデータを繰り返し処理しています
質問
次の行の値によって処理を分岐させたいのですが、ForEachRowの中で次の行の値を取得する構文はありますか?
試したこと
インデックスの出力に変数を設定しそれを使おうかと思ったのですが、それをdatatableに使用する方法がわかりませんでした。
前提
ForEachRowでcsvデータを繰り返し処理しています
質問
次の行の値によって処理を分岐させたいのですが、ForEachRowの中で次の行の値を取得する構文はありますか?
試したこと
インデックスの出力に変数を設定しそれを使おうかと思ったのですが、それをdatatableに使用する方法がわかりませんでした。
Hi @111860
Yes, it is possible to get the value of the next row in a For Each, and what you’ve tried using index is correct. Here, is a sample implementation
Sample Input:
Step 1: Create the CurrentIndex variable in the properties of the ForEach
Step 2: Use it as shown below to get the value of the next row (specific column):
Make sure to use a Try Catch, because Last Index + 1 will give an error as you can see below:
The Sample Flow:
The Sample Output:
I hope this helps. If so, do mark it as a solution.
Thank you,
Happy Automation ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.