Please enable JavaScript to view this site.

ESL Documentation

Use the member built-in function to access the current class element in a for each member loop statement. ESL returns a string value representing the name (identifier) of the member.

 

For example:

 

copy false to InClass

 

for each member of CLASS loop

    if (member = OBJ1) then     #check to see if OBJ1 is in

        copy true to InClass    #this class

        leave loop

    end if

end loop

 

The loop progresses through the objects in the class in the reverse of the order they were added:  the last added is the first member.

 

As there is only a single pseudo variable member, you cannot nest for each member loops, either directly, or via calls to routines, which also contain a for each member loop.