Boolean short circuiting

BlitzMax Forums/BlitzMax Programming/Boolean short circuiting

Hello all

I was just messing about to test whether bmax short-circuits boolean expressions, and it seems that it does:

Function F1:Int()
	Print "F1"
	Return True
End Function

Function F2:Int()
	Print "F2"
	Return True
End Function

If F1() Or F2()
	Print "TRUE"
EndIf


Does anyone know if this is intentional, and if so can I rely on it always being in the language, and on left to right ordering like C?

It's just that it's so damned handy!


Ian C