ESL can convert an object name to a string, and vice versa. For example, you can specify:
invisible key BigShape at position 50 100
...
response to IconClass
if (object = BigShape) then
...
end if
In this example, ESL converts the object name, BigShape, to the string, "BigShape", so that a comparison can be performed with the string value returned by the built-in function object (described in Using Response Inquiry Built-in Functions.)