newbe: IF..THEN statement


Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    No, your line is not legal. Replace it by

    IF (PORTA.0=1) AND (PORTA.1=1) THEN PORTB.0=1

    IF PORTA.2=1 THEN PORTB.0=1

    Robert
    Last edited by rsocor01; - 11th November 2009 at 00:35.

Similar Threads

  1. 16F883 and Problems with HIGH statement
    By aaanekre in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th October 2009, 01:09
  2. END Statement
    By jderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th November 2008, 14:48
  3. ADC_IN statement
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th April 2007, 10:15
  4. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 18:05
  5. getting around the basic IF - THEN statement
    By dw_pic in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th February 2006, 14:10

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