Category:If conditions: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
 
Remove completely wrong info about "dangling else". CON doesn't have that; remains to be written.
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If conditions evaluate the specified statement, and run code based on the returned value of the evaluation. If conditions are boolean (true or false), and may be strung together.
Example code:
[[ifdead]] { [[spawn]] BLOODPOOL [[killit]] }
If conditions may be used in conjunction with an [[else]].
[[Category:All commands]]
[[Category:All commands]]

Latest revision as of 09:36, 18 March 2013

If conditions evaluate the specified statement, and run code based on the returned value of the evaluation. If conditions are boolean (true or false), and may be strung together.

Example code:

ifdead { spawn BLOODPOOL killit } 

If conditions may be used in conjunction with an else.