Exactly what is "NIL" as used in the scripting lan
Posted: Fri Jul 18, 2003 9:24 pm
Hi all,
Can anyone provide a technical answer to what "NIL" is and how to use it in the scripting language?
For instance in m5l2b.scr I see the following:
if( level.drive == NIL || level.drive.size == 0)
{
level.drive[0] = dfr_drive_01h_2
...blah......blah....
if (level.prev_drive != NIL)
Obviously it means something different then NULL, where NULL is treated like "\0" as is standard usuage in C-Language. So:
if ($(self.basename) != NULL)
self.basename remove
self remove
Where if the basename is still in existence, then remove it.
NIL means something different, and I have not found an explaination for what it stands for in any of the Script documents or ClassLevel Doc supplied by MOHRadiant etc..
thanks...
Can anyone provide a technical answer to what "NIL" is and how to use it in the scripting language?
For instance in m5l2b.scr I see the following:
if( level.drive == NIL || level.drive.size == 0)
{
level.drive[0] = dfr_drive_01h_2
...blah......blah....
if (level.prev_drive != NIL)
Obviously it means something different then NULL, where NULL is treated like "\0" as is standard usuage in C-Language. So:
if ($(self.basename) != NULL)
self.basename remove
self remove
Where if the basename is still in existence, then remove it.
NIL means something different, and I have not found an explaination for what it stands for in any of the Script documents or ClassLevel Doc supplied by MOHRadiant etc..
thanks...