This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
This article needs: Examples of usage.
Contents |
Halts execution and prints a custom error message if a condition is false(0). Note that the error message will be displayed in chat even if the command itself is in a [H: ] block.
assert(condition, message)
assert(condition, message, prefix)
Parameters
condition - The test condition that must evaluate to true(1) for the macro to continue.
message - The custom error message that is presented if the macro is halted due to the false(0) condition.
prefix - Determines if the error message should have the message prefix "Macro defined error: ". Defaults to true(1), set to false(0) if you do not wish your custom error message to have the message prefix.
prefix parameter option.