This function checks if a given events exists in HomeSeer's event list.
Description: This is the name of the event. The name is not case-sensitive.
Return value: event index
Description: This returns TRUE if the given event exists and FALSE if it doesn't.
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