Need help with Order History to get the last order?

 
Is there a way to get the last order in order history?
 
yes, just loop through the closed orders, keyword: OrdersHistoryTotal() and its example in the editor's reference.
Reason: