[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== IF Statement Syntax (AREV Specific) ==== === At 04 JUN 1999 10:27:46AM Matt Sorrell wrote: === {{tag>"AREV Specific"}} Okay, Silly IF statement syntax question here. I've looked in the books and can't find anything about it. Does AREV support the IF ... ELSE IF "step ladder" construction like C++ and VB do? For example IF condition then *do something ELSE IF condition2 then *do something else ELSE IF condition3 then . . . END Thanks, Matt Sorrell msorrell@movgal.com ---- === At 04 JUN 1999 12:02PM Bill Titus wrote: === IF...THEN...ELSE format would be: IF .... THEN ACTION1 END ELSE IF .... THEN ACTION2 (or another nested IF..THEN..ELSE, ad nauseum) END ELSE ACTION3 END END I don't know of limits on nesting IF..THEN..ELSE statements in RBasic. Beyond two levels I move to CASE or ON GOSUB routines to speed things up. Hope this helps. Bill ---- === At 04 JUN 1999 01:08PM Steve Smith wrote: === What you describe is effectively a CASE statement. Steve [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=AAE8AD1C09170BD285256786004F7268|View this thread on the forum...]]