src/swipl-devel/packages/xpce/man/refmanual/md/equal.md

class equal {#class-equal}

Test for equality. Succeeds if both <-left and <-right are equal (compared by reference). The following example returns the first object called gnu in Chain:

get(Chain, find, @arg1?name == gnu, Gnu)

See also class \== and object ->equal.

@see object->equal @see class \== @see topic Conditions @see object->is_on @see object->is_off @see object->has_value

Instance variables {#class-equal-instvars}

Send methods {#class-equal-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.