Condition_IsSiteType
Description
Checks whether the specified BaseObject is currently located in a site of the given site type (S1). Note: This condition requires BOTH Self and Target to be valid actors and to be located in the SAME site. If either is not set/valid or they are in different sites, this condition cannot be evaluated and returns false.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The object used as the reference (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | Site type to compare (EB1SiteType). |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Checks whether self is currently in a Residence site. | Self | IsSiteType | Equal | Residence |
| Checks whether target is NOT in a Business site. | Target | IsSiteType | NotEqual | Business |
Back to Command FinderSearch and filter all 491 Script Condition documents