I can\'t work out why my value is being ignored. In my stored procedure it has these two AND statements
AND (@Current IS NULL OR (o.[OrderStatusId] <> 4