using AND as an IF statement


Results 1 to 28 of 28

Threaded View

  1. #11
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by mramos
    ...that a basic command is "crippled" that should not be. ...
    It's not actually crippled, it is just not developed. MELabs put less work into it, they charge less for it. As you noted, it is much closer to ASM than it is to BASIC.

    Much like ErnieM's #2 and I am sure others, here is what I did in the past. It is not quite as clean as the PBP version but is quite readable nonetheless (one extra goto per if-then)

    ;in PBP

    If X = 5 then
    x = 5
    y = 6
    z = 7
    Else
    x = 7
    y = 0
    z = 6
    Endif

    ;in PBC

    If X<>5 then Else1
    x=5
    y=6
    z=7
    goto EndIf1
    Else1:
    x=7
    y=0
    z=6
    EndIf1:


    for the next If-Then, use Else2, Endif2, etc.


    Paul Borgmeier
    Salt Lake City, Utah
    USA
    Last edited by paul borgmeier; - 1st June 2006 at 06:40.

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