ExpectPrecondition | |
Type | statement |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax |
|
Associations | com.livecode.assert |
Summary | Check a precondition |
Example |
|
Related | Statement: ExpectPreconditionWithReason |
Description | Use this statement at the start of a handler to check that necessary preconditions for the handler are satisfied. For example, the handler may require that its parameters have a particular structure or fall within a particular range, or may need the system to be in a specific state. Note that if the Condition is false, this statement will throw an error with the slightly-unhelpful message that "assertion failed". Usually, it will be more useful to use ExpectsPreconditionWithReason instead. |
Tags | assertions |