Can you say this?


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Can you say this?

    The PBP help file for the AND statement says.....
    Be sure to use parenthesis to tell PICBasic the exact order you want the operations to be performed.....

    That means your original statement should look like.....
    IF (X=1) OR (X=2) THEN....

    HTH
    BrianT

  2. #2
    Join Date
    Jan 2010
    Posts
    88


    Did you find this post helpful? Yes | No

    Default Re: Can you say this?

    Thanks guys for the help. Sometimes, the answer is right in front of you, but you're so stuck on seeing it the other way, that your mind doesn't realize it. The way I wrote it sounded so logical, but I know the chip isn't that smart, hence, why we have to tell it EXACTLY what to do or else it won't do it.

    Before I could get an answer, I rewrote it into separate IF statements. Seems to flow that way too. Thanks again.

    Tony

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts