mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
95d38f9ba6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@988 0fc631ac-6414-0410-93d0-97cfa31319b6
17 lines
451 B
Plaintext
17 lines
451 B
Plaintext
Function: assert
|
|
|
|
--Usage--
|
|
> assert(condition)
|
|
|
|
Check that the condition is @true@. Shows a warning message if it is not.
|
|
|
|
Note: @assert@ is a special built-in keyword, so that the error message can include the condition.
|
|
|
|
--Parameters--
|
|
! Parameter Type Description
|
|
| @input@ [[type:boolean]] Condition to check.
|
|
|
|
--Examples--
|
|
> assert(1 + 1 == 2) == nil # nothing happens
|
|
> assert(1 * 1 == 2) == nil # An error message is shown
|