Problems with And/Not

BlitzMax Forums/BlitzMax Programming/Problems with And/Not

GfK(Posted 2006) [#1]
Am I having a blonde moment here or what? Why does this always stop at the SECOND DebugStop??

Local xx:Int = 8
If Not(xx And 4)
	DebugStop ' it should stop here!!
EndIf
DebugStop



Beaker(Posted 2006) [#2]
This should shed some light on your highlights:
Local xx:Int = 8
DebugLog "And: "+Not(xx And 4)
DebugLog "&: "+Not(xx & 4)
If Not(xx And 4)
	DebugStop ' it should stop here!!
EndIf
DebugStop



Yan(Posted 2006) [#3]
If Not(xx & 4)


[edit]
...Wot Beaker said...
[/edit]


FlameDuck(Posted 2006) [#4]
Why does this always stop at the SECOND DebugStop??
8 and 4 are both always true.


GfK(Posted 2006) [#5]
Thx Beak! :)