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
the correct syntax is
camsParent = null; //All lowercase
:)
thanks!
You might want to edit the first post and chnage the forum to the Daz Script Developer forum https://www.daz3d.com/forums/categories/daz-script-developer-discussion
I'm not sur what you are doing - you don't make a node the root of a hierarchy by setting its parent to null, if it's the root getNodeParent() will return null. If you want to unparent it you use removeNodeChild( child ) on the parent.
Ha ha, found the C programmer...
":)" meant I checked it and it was the solution.
I just wanted a manually forced loop exit by the current loop check/condition
Yes and no.
I only read the DAZ spec and there always mentioned "NULL"
The docs were probably written by their C++ programmers who were forced to write the JS documentation :)
If the APIs are the same then the docs get repurposed.