bool variable

Hi, I need to create a bool variable that is true if an order that was previously opened now is closed.

How can I proceed?

Thank you!

See function OrderCloseTime().
[Deleted]

if you mean by previous order = last order, then if statement is enough,



but if not that is the case, you need a loop to search for that order, a magic number, or ticket number....