Condition_IsSiteOperating
Description
Checks whether the site the BaseObject stands in is open right now, by the OperatingTime of the Site table. A household business registered on the site overrides it with the business work time. Hours are [start, end), and hours that close on the next day count as the day they opened. 999 hours mean open all day; Everyday, Invalid or empty days mean open every day. A BaseObject outside every site is not open.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The actor whose located site is checked (Self or Target). |
| CompareType | Equal only. |
| S1 | All (or None) = hours and days, Hour = hours only, Week = days only. |
| S2, F1, F2 | Not used. |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| Order from the kiosk only while its site is open | Target | IsSiteOperating | Equal | |
| Allow only within the site's operating hours, any day | Target | IsSiteOperating | Equal | Hour |
| Allow only on the site's operating days, any time of the day | Self | IsSiteOperating | Equal | Week |