Check type and value of order