Condition_HasRemainingFood
Description
Checks whether the specified FoodObject has remaining food (not empty). Note: a restaurant dish whose service has finished is treated as empty regardless of the remaining amount. Service is finished when the customer of its order ticket is confirmed departed, or when the ticket has been settled and the dish is registered in the cleanup queue.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The food object to validate (Self or Target). |
| CompareType | Equal: has remaining food. NotEqual: is empty or service-finished. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Checks whether target food has remaining servings. | Target | HasRemainingFood | Equal |
| Checks whether self food is empty. | Self | HasRemainingFood | NotEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents