Nullop: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
'''nullop'''
'''nullop'''


Null operation.  Use this instead of empty braces to signify doing nothing, immediately followed by [[else]] when the if condition returns false.
Null operation.  Use this instead of empty braces to signify doing nothing, immediately followed by [[else]] and code to run if the if condition returns false. If you are not using an else, remove nullop and the if condition completely.


Instead of <code>ifpdistl 1024 { } else killit</code>, do <code>ifpdistl 1024 nullop else killit</code>.
Instead of <code>ifpdistl 1024 { } else killit</code>, do <code>ifpdistl 1024 nullop else killit</code>.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]

Latest revision as of 16:57, 9 January 2013

nullop

Null operation. Use this instead of empty braces to signify doing nothing, immediately followed by else and code to run if the if condition returns false. If you are not using an else, remove nullop and the if condition completely.

Instead of ifpdistl 1024 { } else killit, do ifpdistl 1024 nullop else killit.