surface_exists(id)

id = name of the variable which holds the ID of the surface (see surface_create).

 

Example

if surface_exists(surface)

{

show_message(Surface Exists);

}

else

{

show_message(Surface Does Not Exist!);

}

 

This function returns whether or not does the surface with the given ID exists. It returns either a “1” or “true” if it exists, or a “0” or “false” if it does not exist.

 

esh_corp11 - Revision #1