Condition_NumberOfHouseholdInSite
Description
Counts household members, excluding BaseObject, who are currently in the same Site as BaseObject. Optionally filters the counted members by GrowthStep before comparing the count with F2.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character used to resolve the current Site and Household (Self or Target). |
| CompareType | Comparison operator: Equal, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual. |
| S1 | Filter token: empty for all members, {GrowthStep} to include S2 only, {ExcludeGrowthStep} to exclude S2. |
| S2 | EB1GrowthStep name used by {GrowthStep}/{ExcludeGrowthStep} (e.g., Baby, Adult). Bitmask values such as Baby work as-is. |
| F1 | Unused. This command uses Site boundaries instead of distance. |
| F2 | Number of matching household members to compare against. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 | F1 | F2 |
|---|---|---|---|---|---|---|---|
| Check if there is at least 1 cohabiting family member in the current Site excluding Baby | Self | NumberOfHouseholdInSite | GreaterOrEqual | {ExcludeGrowthStep} | Baby | 1 | |
| Check if no other household member is currently in the same Site | Self | NumberOfHouseholdInSite | Equal | 0 |
Back to Command FinderSearch and filter all 491 Script Condition documents