Skip to main content

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

ParameterDescription
BaseObjectThe character used to resolve the current Site and Household (Self or Target).
CompareTypeComparison operator: Equal, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual.
S1Filter token: empty for all members, {GrowthStep} to include S2 only, {ExcludeGrowthStep} to exclude S2.
S2EB1GrowthStep name used by {GrowthStep}/{ExcludeGrowthStep} (e.g., Baby, Adult). Bitmask values such as Baby work as-is.
F1Unused. This command uses Site boundaries instead of distance.
F2Number of matching household members to compare against.

Examples

DescriptionBaseObjectCommandCompareTypeS1S2F1F2
Check if there is at least 1 cohabiting family member in the current Site excluding BabySelfNumberOfHouseholdInSiteGreaterOrEqual{ExcludeGrowthStep}Baby1
Check if no other household member is currently in the same SiteSelfNumberOfHouseholdInSiteEqual0