Multiple AND's


Closed Thread
Results 1 to 6 of 6

Thread: Multiple AND's

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Another way ...
    Code:
    Idx   VAR BYTE
    Vars  VAR BYTE[12]
      a   VAR Vars[0]
      b   VAR Vars[1]
      c   VAR Vars[2]
      d   VAR Vars[3]
      e   VAR Vars[4]
      f   VAR Vars[5]
      g   VAR Vars[6]
      h   VAR Vars[7]
      i   VAR Vars[8]
      j   VAR Vars[9]
      k   VAR Vars[10]
      l   VAR Vars[11]
      m   VAR BYTE
      
    For Idx = 1 to 11
        IF a != Vars[Idx] THEN m = 0 : GOTO VarTestDone
    NEXT Idx
    m = 1
    VarTestDone:
    DT

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink little useful question ...

    Hi,TaznTex

    As it looks close to logics ... Could you tell what kind of variables are "a" to "l" ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Multiple PICS from Same Crystal?
    By WOZZY-2010 in forum General
    Replies: 2
    Last Post: - 6th February 2010, 15:18
  2. Multiple "AND"'s in select case?
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st January 2010, 19:10
  3. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  4. Multiple IR LEDs from 1 port using transistor
    By belpe123 in forum General
    Replies: 3
    Last Post: - 20th May 2005, 22:07
  5. Using Multiple EEPROMs
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th March 2005, 07:37

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