[ Type Testing | Reference Manual | Alphabetic Index ]


Succeeds if Term is an event name or handle
Prolog term.


Used to test whether Term is either an event name (an atom) or an event handle (a special kind of handle as created by event_create/3).

Modes and Determinism

Fail Conditions

Fails if Term is neither an atom nor an event handle


    ?- is_event(my_event).
    Yes (0.00s cpu)

    ?- event_create(true, [], E), is_event(E).
    E = $&(event,"36nztf")
    Yes (0.00s cpu)

    ?- bag_create(B), is_event(B).
    No (0.00s cpu)

    ?- is_event(_).
    No (0.00s cpu)

    ?- is_event(42).
    No (0.00s cpu)

See Also

event / 1, atom / 1, is_handle / 1, is_handle / 2, event_create / 3, type_of / 2