THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/10/2007 at 07:06, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
I want to check if specific fields in a three-dimensional array are already set (the third dimension has only two fields). Although the term
if(edges[minPoint][maxPoint][0] == NULL)
edges[minPoint][maxPoint][0] = value;
else
edges[minPoint][maxPoint][1] = value;
seems to be valid, COFFEE treats 0 like NULL. Thus, if the field is filled with 0, the value gets overwritten.
How can i distinguish between 0 (zero) and NULL (emtpy field)?
Regards
Christoph Lauterbach