assigning / usage of NULL in script?

I built a walk through a node-parent-path to the root  in a while loop

while (camsParent)

                camsParent = camsParent.getNodeParent();

 

In some cases I want to stop it  manually and use

camsParent = NULL;

 

because of the description of getNodeParent  "The parent of this node in the scene hierarchy, NULL if this node is at root level."

 

But I get the error:     ReferenceError: Can't find variable: NULL

 

What is my mistakee and how can I fix it?

Comments

Sign In or Register to comment.