{"name":"nil","operator":null,"title":"nil","type":"command","url":"https://community.bistudio.com/wiki/nil","revid":347969,"updated":"2023-11-08T09:38:47Z","groups":["Variables"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Nil value. This value can be used to undefine existing variables.","syntaxes":[{"syntax":"nil","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nvariableToDestroy = nil;\n```","code":["variableToDestroy = nil;"]},{"text":"```sqf\nprivate _variable = 50;\n_variable = nil;\nhint format [\"Variable = %1\", _variable];    // will display \"Variable = any\" in unscheduled environment\n                                            // will output \"Error Undefined variable in expression: _variable\" in scheduled environment\n// identical to\nhint format [\"Variable = %1\", _variableThatWasNeverDefined];\n```","code":["private _variable = 50;\n_variable = nil;\nhint format [\"Variable = %1\", _variable];\t// will display \"Variable = any\" in unscheduled environment\n\t\t\t\t\t\t\t\t\t\t\t// will output \"Error Undefined variable in expression: _variable\" in scheduled environment\n// identical to\nhint format [\"Variable = %1\", _variableThatWasNeverDefined];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["isNil","Variables"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Variables","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}