assert: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: From b49 announcements: * New function: assert(condition, message) - prints error message if condition is zero)
 
No edit summary
Line 1: Line 1:
From b49 announcements:
From b49 announcements:


* New function: assert(condition, message) - prints error message if condition is zero
* New function: assert(condition, message) - if condition is zero, halts execution and prints a custom error message. 
 
Note that the error message will be displayed in chat even if the command itself is in a [H: ] block.

Revision as of 18:24, 21 January 2009

From b49 announcements:

  • New function: assert(condition, message) - if condition is zero, halts execution and prints a custom error message.

Note that the error message will be displayed in chat even if the command itself is in a [H: ] block.