Skip to main content

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

ParameterDescription
BaseObjectThe actor whose located site is checked (Self or Target).
CompareTypeEqual only.
S1All (or None) = hours and days, Hour = hours only, Week = days only.
S2, F1, F2Not used.

Examples

DescriptionBaseObjectCommandCompareTypeS1
Order from the kiosk only while its site is openTargetIsSiteOperatingEqual
Allow only within the site's operating hours, any dayTargetIsSiteOperatingEqualHour
Allow only on the site's operating days, any time of the daySelfIsSiteOperatingEqualWeek