If I am interpreting your request properly, the following simple script will give you what you want
Names Default To Here( 1 );
dt = Current Data Table();
// Initialize a counter
count = 0;
// Loop through the last 10 rows and count
// the number of times :A<=:B
For( i = N Rows( dt ) - 9, i <= N Rows( dt ),
i++,
If( :A[i] <= :B[i], count++ )
);
// Handle the 2 scenarios for which columns to delete
If( count == 10,
dt << delete columns( {"C", "E"} ),
dt << delete columns( {"D", "F"} )
);
Jim