[futurebasic] BASIC translation

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2001 : Group Archive : Group : All Groups

From: Ken Shmidheiser <k.shmidheiser@...>
Date: Sat, 21 Jul 2001 03:17:36 -0400
I am attempting to translate the following logic (Javascript) to 
FB^3, but have run into a problem dealing with an "else" statement 
after a series of "else ifs".

Here is the critical logic I'm attempting to translate:

  if
  else
        if
        else if
        else if
        else

        if
        else
               if

And here is my imperfect translation, which is stalling somewhere 
after the second XELSE (which I have subbed for the second "else" 
above.)

LONG IF
  XELSE
        LONG IF
          IF THEN
          IF THEN
         XELSE
        END IF

        LONG IF
          XELSE
              LONG IF
              END IF
        END IF
END IF

Any suggestions?

Ken