If the selector have row index, try below logic.
TotalCount= Datatable1.rows.count;
RowId=1; // provide the starting row index
While (RowId <TotalCount)
{
Use Get Attributes. (In selector, replace row index with RowId variable)
If(itemCheked)
{
//Provide your actions
}
index with the counter variable RowId.)
RowId=RowId +1;
}