我有兩個數據表,dt1和dt2,我試圖使用函數“For Each Row”來解析dt1,然後在該循環中評估dt2中的相應數據。為了確保一行代碼是從右表中獲取數據,是否必須在其前面加上“當前數據表(dt1 / dt2)”或發送運算符“<<”?讓我提供一個示例代碼塊,並允許您根據需要進行調整。
row_count = 1;
For Each Row (
item_of_interest = dt1[row_count,1]; //Grab the value in the first column
dt2 << If ( Contains ( dt2[0,1], item_of_interest), //Look through column 1 in dt2 for that specified value in dt1
Write("Yes\!n"),
Write("No\!n");
);
row_count++;
);謝謝!