Skip to main content

Condition_IsRestaurantOrderState

Description

Returns whether the BaseObject customer has a restaurant order ticket in the EB1OrderState specified by S1. All real ticket states are supported through enum-name conversion rather than a state-specific branch.

Parameters

ParameterDescription
BaseObjectSelf or Target customer whose order ticket state is checked
S1EB1OrderState FName: Ordered, Cooking, Ready, Served, Eaten, or Cancelled
CompareTypeEqual: the ticket is in S1. NotEqual: no ticket for the customer is in S1

Examples

IsRestaurantOrderState(BaseObject=Target, S1=Served, CompareType=Equal)