path_exists


Description

his function returns whether a path with the given index exists or not. Note that if you check for the existence of a path through a variable that has yet to have been declared, this will throw an error.


Syntax:

path_exists(index);


Argument Description
index The index of the path to check for.


Returns:

Boolean


Example:

if path_exists(path0)
    {
    path_start(path0, 4, path_action_reverse, 0);
    }

This will start path0, if it exists.