Jump to content

Assertions: Difference between revisions

→‎{{header|AutoHotkey}}: updated with real exceptions
(Added BBC BASIC)
(→‎{{header|AutoHotkey}}: updated with real exceptions)
Line 41:
FINISH</lang>
=={{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)
{
Cookies help us deliver our services. By using our services, you agree to our use of cookies.