I am storing some values in a dt which contains multiple row values say
Regis No, Roll No
111 abc123
222 xyz456
333 yyy123
i am getting an input say 333 and yyy123.
i want to check whether this value is matched with the values in the dt
i need a basic select statement in assign to perform this.
Correct me if i am wrong.
Storing your result code in a boolean variable
Expected is , if the below value is found in dt then it should return true
333 yyy123
Any corrections to be done ?
Yes you need to provide the column names exactly as per your input file and also it should be case sensitive. Else you can provide column index instead of column name.
Eg. Regis No column is first column then pass index as 0.
Try below expression in IF activity.
dt.AsEnumerable().Where(Function(row) row(0).ToString.Equals(“333”) AND row(1).ToString.Equals(“yyy123”)).Length > 0
If matching rows found then above expression will result True else False.