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

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



add additional information headings and text here