Somewhere on that page, there is
Example: Advanced multi-line macro
that shows Assert and two examples.
It may be a joke (on those who love to use assert) or a typo: A "Not" is missing, so the code only asserts errors

Thanks for your attention.
Moderator: Documentation Editors
Code: Select all
Macro DoubleQuote
"
EndMacro
Macro Assert(Expression)
CompilerIf #PB_Compiler_Debugger ; Only enable assert in debug mode
If Expression
Debug "Assert (Line " + #PB_Compiler_Line + "): " + DoubleQuote#Expression#DoubleQuote
EndIf
CompilerEndIf
EndMacro
Assert(10 <> 10) ; Will display nothing
Assert(10 <> 15) ; Should display the assert