Please enable JavaScript to view this site.

ESL Documentation

The object function lets you find and use the name of the object or

item that stimulated the current response. ESL returns a string

value representing the name of the object or item that was selected; for example:

 

response to Go

    make object yellow    # Equivalent to make Go yellow.

    action SendQuery

 

If the current response is not stimulated by selecting an object, using the response to or response to item response definitions, ESL returns the null string as the value of the function.

 

The object function always returns the value of the last response taken.

 

The object function is particularly useful in manipulating objects that belong to a class. This is described in Using Built-in Functions with Classes.