Assertions: Difference between revisions
Content added Content deleted
(Added BBC BASIC) |
(→{{header|AutoHotkey}}: updated with real exceptions) |
||
Line 41: | Line 41: | ||
FINISH</lang> |
FINISH</lang> |
||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |
||
=== Exceptions === |
|||
{{works with|AutoHotkey_L}} |
|||
<lang AHK>a := 42 |
|||
Assert(a > 10) |
|||
Assert(a < 42) ; throws exception |
|||
Assert(bool){ |
|||
If !bool |
|||
throw Exception("Expression false", -1) |
|||
}</lang> |
|||
=== Legacy versions === |
|||
<lang AutoHotkey>if (a != 42) |
<lang AutoHotkey>if (a != 42) |
||
{ |
{ |