Condition_IsCustomerSatisfactionGoal
Description
Returns whether the total satisfaction score of the BaseObject customer meets the level-based goal score defined in FB1HouseholdBizConfigTableRow (CustomerSatisfactionGoalScore for the current biz level). The comparison is between the customer's total satisfaction score (CalculateTotalSatisfactionScore) and the goal score from the config table. Returns false if no HouseholdBiz is found at the customer's current Site, if there is no valid config or level info, or if the customer has not visited the Biz today. InRange, OutRange, and None CompareTypes are not supported.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | A customer Character located at a HouseholdBiz site. Used to resolve both the Site and the biz. |
| CompareType | Equal, NotEqual, Greater, GreaterOrEqual, Less, or LessOrEqual comparison against the goal score. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if Self's satisfaction score meets the level goal | Self | IsCustomerSatisfactionGoal | GreaterOrEqual |
| Check if Target's satisfaction score exceeds the level goal | Target | IsCustomerSatisfactionGoal | Greater |
| Check if Self's satisfaction score is below the level goal | Self | IsCustomerSatisfactionGoal | Less |
| Check if Target's satisfaction score does not equal the goal | Target | IsCustomerSatisfactionGoal | NotEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents