Can not get my IF THEN statement to work


Results 1 to 10 of 10

Threaded View

  1. #3
    Rhatidbwoy's Avatar
    Rhatidbwoy Guest


    Did you find this post helpful? Yes | No

    Default

    meaning the line to follow the if then statement needs to be else were to make the statement do what it is suppose to do. Ok that makes a little sense when thinking about it. I tried pulling the line labels that would make the statement true elsewhere in my program and same results. it looks something like this:

    CHECK:
    if B6 = $31 and B7 < $35 then twenf '25
    if B6 = $32 and B7 > $35 then fift '15
    if B6 = $32 and B7 < $30 then nint '19
    if B6 = $31 and B7 >$39 then twent '20
    goto cs

    twenf:
    poke B6,$32: poke B7,$35:goto cs

    fift:
    poke B6,$31: poke B7,$35:goto cs

    nint:
    poke B6,$31: poke B7,$39:goto cs

    twent:
    poke B6,$32: poke B7,$30:goto cs

    this make sense to having the if then statement work rather than the other one, but I still get no response to how I think that the the if then statement should work. I am still falling out of my limits when i do the scrolling of me wanted value of 15 to 20.

    P.S. the whole program is attached
    Attached Files Attached Files
    Last edited by Rhatidbwoy; - 31st October 2005 at 14:31.

Similar Threads

  1. END Statement
    By jderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th November 2008, 14:48
  2. How do I get DATA @ to work with a 18F452?
    By jessey in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd February 2006, 10:35
  3. blink.bas help cant make any 18f's work
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th December 2004, 21:28
  4. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03
  5. Interrupt Problem
    By FrankM in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 20th June 2004, 15:53

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