LB Booster
« Is this a bug? »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:47am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Is this a bug?  (Read 197 times)
Monkfish
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Is this a bug?
« Thread started on: Nov 20th, 2015, 3:51pm »

Not sure if the following is a bug or intentional:

The following didn't work:

Code:
If a = x and (b and c) then 


Had to write the following instead:

Code:
If a = x then if b and c then 


Maybe I'm just not supposed to mix logical expressions with bitwise expressions.

User IP Logged

tsh73
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Is this a bug?
« Reply #1 on: Nov 20th, 2015, 5:03pm »

(b and c) bitwise,
say (4 and 6) gives 4
a=x is logical, gives 0 or 1

so (1 and 4) is bitwise 0.

You can write it as
Code:
If a = x and (b and c)<>0 then  
User IP Logged

Monkfish
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 104
xx Re: Is this a bug?
« Reply #2 on: Jan 4th, 2016, 3:18pm »

Thanks tsh73 smiley
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls