how to check the number of orders - page 2

 
Was just about to advise that you try "if x==1" rather than "if x=1".

CB
Reason: