nil – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
:[[User:UNN|UNN]] 20:54, 29 September 2007 (CEST)
:[[User:UNN|UNN]] 20:54, 29 September 2007 (CEST)
:nil is correct. There is nothing like nill. (Because of the way [[Void]] values are handled nill may appear to be working, because it is handled as undefined variable) --[[User:Suma|Suma]] 22:45, 29 September 2007 (CEST)
:nil is correct. There is nothing like nill. (Because of the way [[Void]] values are handled nill may appear to be working, because it is handled as undefined variable) --[[User:Suma|Suma]] 22:45, 29 September 2007 (CEST)
Ok thanks for the replies. I just had some weird results earlier. Will try it again.--[[User:Maddmatt|Maddmatt]] 23:07, 29 September 2007 (CEST)

Revision as of 23:07, 29 September 2007

I did some testing. I think this command should be spelled "nill". "nil" does nothing, while "nill" deletes the variable. This spelling mistake has been around since the OFP scripting reference. --Maddmatt 15:43, 29 September 2007 (CEST)

Are you sure? This works fine:
AVAR="A" ; AVAR=Nil ; Hint Format ["Var %1 IsNil %2",AVAR,IsNil "AVAR"];
UNN 20:54, 29 September 2007 (CEST)
nil is correct. There is nothing like nill. (Because of the way Void values are handled nill may appear to be working, because it is handled as undefined variable) --Suma 22:45, 29 September 2007 (CEST)

Ok thanks for the replies. I just had some weird results earlier. Will try it again.--Maddmatt 23:07, 29 September 2007 (CEST)