IF Statement Syntax (AREV Specific)
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
ACTION1END ELSE
IF .... THENACTION2 (or another nested IF..THEN..ELSE, ad nauseum)END ELSEACTION3ENDEND
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