Skip to main content

Condition_HasOperatingBizRole

Description

Returns whether the BaseObject's global HouseholdBiz role matches the specified Role. Unlike Condition_HouseholdBizRole (site-based), this condition determines the role by inspecting the BaseObject's current schedule's TimelineDtId and comparing it against the role base timeline IDs defined in UB1HouseholdBizDataAsset. When there is no current schedule, NotEqual returns true. For Customer, a character recorded as a customer of any operating restaurant (in-site customer, seat assignment, waiting party, or pending party) is also treated as a Customer, even without the customer schedule (e.g. manual-entry party members who are seated or still on the way).

Parameters

ParameterDescription
BaseObjectAn Entity that has a TimelineComponent (typically a Character).
CompareTypeEqual: true if the current schedule's TimelineDtId matches the role's base timeline ID (Customer: or is recorded as a party customer of an operating restaurant). NotEqual: true if it does not.
S1HouseholdBiz role to compare against: Customer, Employee, or Manager.

Examples

DescriptionBaseObjectCommandCompareType
Check if Self currently has the Employee biz role in their scheduleSelfHasOperatingBizRoleEqual
Check if Target does not have the Manager biz role in scheduleTargetHasOperatingBizRoleNotEqual
Check if Self currently has the Customer biz role in their scheduleSelfHasOperatingBizRoleEqual