vendor = "Vendor A"
days = 13
If days <= 7 Then
columnName = "Day 1-7"
ElseIf days <= 14 Then
columnName = "Day 8-14"
ElseIf days <= 21 Then
columnName = "Day 15-21"
Else
columnName = "Other" ' Adjust for additional ranges
End If
rate = ratesDataTable.AsEnumerable().
Where(Function(row) row("Vendor").ToString() = vendor).
Select(Function(row) row(columnName).ToString()).FirstOrDefault()
You can add this lookup in modern activity also
And while adding lookup activity you can have conditions as per below response and inside there add lookup activity to get exact. Value you want