Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / OR Boolean Operator problem

Author
Message
Filmmaker Screenwriter
21
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 24th Jun 2004 01:59 Edited at: 24th Jun 2004 03:08
Okay, here's the OR table according to DB.



Here's what I have:



That simplifies to (0) OR (1). My output = 0. Why is this happening? I have an AND statement directly before this, would that affect it?

Please help.

EDIT: In case it would be easier for you to help me, I'm putting my entire program on here, but I'm pretty sure I didn't screw up on anything:



Pentium4 3GHZ, 512MB DualChannel RAM, 256MB ATI Radeon 9800XT, SoundBlaster Audigy2, 120 GB HD.
Jetmech
22
Years of Service
User Offline
Joined: 25th Oct 2002
Location: Dayton Ohio
Posted: 24th Jun 2004 02:22
I just tried it and got a 1 just as expected.... not sure but I think thats one of the bugs that just got fixed, ...Im using the latest 5.4 updates that came out today.

Filmmaker Screenwriter
21
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 24th Jun 2004 03:09 Edited at: 24th Jun 2004 03:21
I'm using Dark Basic Lite, so I can't update. It must be a v 1.11 bug. Do I have to erase & rewrite the last two commands or something?

EDIT: Okay, I just went back and reprogrammed it. DBCL is bugged somehow, as it won't recognize an 0 OR 1 statement as valid. So, I changed it to a 1 OR 0 statement, which worked.



However, my question is: when creating a game, will there ever be a time when I NEED to have a 0 OR 1 statement, or will I be able to reverse it to a 1 OR 0?

Thanks for the help.

Pentium4 3GHZ, 512MB DualChannel RAM, 256MB ATI Radeon 9800XT, SoundBlaster Audigy2, 120 GB HD.
Filmmaker Screenwriter
21
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 24th Jun 2004 07:46 Edited at: 24th Jun 2004 08:11
Sorry to double post, but I don't want this topic to get buried 'cause I just need to ask one more question.

EDIT: Forget my question.

Ooookay, now I'm really getting mad. Dark Basic Lite is also bugged in the AND statement department as well... my 1 AND 0 = 0 doesn't work right, either. Instead, IT'S output is 1.

Anyways, if someone would please test my full prog and let me know what happens, here is my revised (yet again) program.


Thanks in advance for letting me know what happens.

I need to know because regardless, I'm continuing Programming Principles tomorrow, Common Statements. Oh boy!! I wonder what other bugs I'll discover...

Pentium4 3GHZ, 512MB DualChannel RAM, 256MB ATI Radeon 9800XT, SoundBlaster Audigy2, 120 GB HD.

Login to post a reply

Server time is: 2024-11-26 22:26:02
Your offset time is: 2024-11-26 22:26:02