Skip to main content
Skip table of contents

EventExists (Event_Info_Group)

Purpose

This function checks if a given events exists in HomeSeer's event list.


Parameters

Parameter: name
Type: string
Description: This is the name of the event.  The name is not case-sensitive.


Returns

Return value: event index
Type: boolean
Description: This returns TRUE if the given event exists and FALSE if it doesn't.


Example

Sample Code

VB
sub main()

	if hs.EventExists("evening") then

		hs.speak "The evening event exists",TRUE

	else

		hs.speak "The evening event does not exist",TRUE

	end if

end sub


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.