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

At 04 JUN 1999 10:27:46AM Matt Sorrell wrote:

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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/aae8ad1c09170bd285256786004f7268.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1