Assert (Effect) — SkCheese
Addon: SkCheese · Category: Effect · Since: 1.7
Syntax
assert <.+> with (error|warning) [message] %string%Description
Checks if a condition is true, otherwise throws an error or a warning with a custom message and stops the code.
Examples
assert {_x} is 1 with error "{_x} should've been 1"
assert {_var} > 5000 with warning "{_var} should've been more than 5000"