how to count from record (buy + buylimit totals) drop one to execute?

 
for example

buy + buylimit totals in record and drop -1, how to execute?

if(buy + buylimit totals > buy + buylimit totals && 0 < buy + buylimit totals)
{
execute>>>
}
 
pls reply point me.

thanks
Reason: