If endif loop with 'OR'


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: If endif loop with 'OR'

    Hi Richard,

    Thanks for your reply.

    I forgot to say that I am using Oshonsoft.

    See attached result image.

    C
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,672


    Did you find this post helpful? Yes | No

    Default Re: If endif loop with 'OR'

    this compiles just fine from mcs



    Code:
    poscnt var word
    azimval var word
    time var byte
    
    main:
    if (poscnt<azimval) or (azimval-poscnt >= 1800) then
    gosub cwise
    time=0
    endif
    goto main
    end
    cwise:
    return
    take up the issue with Oshonsoft.

Similar Threads

  1. Exit from an IF/ENDIF loop with a GOTO
    By aratti in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 17th February 2014, 13:05
  2. Replies: 2
    Last Post: - 28th July 2011, 16:23
  3. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23
  4. Problems with IF ENDIF
    By jetpr in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd November 2005, 16: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