nil – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
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. --[[User:Maddmatt|Maddmatt]] 15:43, 29 September 2007 (CEST)
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. --[[User:Maddmatt|Maddmatt]] 15:43, 29 September 2007 (CEST)
:Are you sure? This works fine:
:<code>AVAR="A" ; AVAR=Nil ; Hint Format ["Var %1 IsNil %2",AVAR,IsNil "AVAR"];</code>
:[[User:UNN|UNN]] 20:54, 29 September 2007 (CEST)

Revision as of 20:54, 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)