Problems with And/Not
BlitzMax Forums/BlitzMax Programming/Problems with And/Not
| ||
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 |
| ||
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 |
| ||
If Not(xx & 4) [edit] ...Wot Beaker said... [/edit] |
| ||
Why does this always stop at the SECOND DebugStop?? 8 and 4 are both always true. |
| ||
Thx Beak! :) |