Quantcast
Channel: If...else if...else in REBOL - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by HappySpoon for If...else if...else in REBOL

And a further option is to use all all [ expression1 expression2 expression3]and as long as each expression returns a true value, they will continue to be evaluated.so,if all [ .. ][ ... do this if all...

View Article



Answer by Graham Chiu for If...else if...else in REBOL

You can use the case construct for this, or the switch construct.case [ condition1 [ .. ] condition2 [ ... ] true [ catches everything , and is optional ]]The case construct is used if you're testing...

View Article

Answer by HostileFork says dont trust SE for If...else if...else in REBOL

The construct you would be looking for would be CASE. It takes a series of conditions and code blocks to evaluate, evaluating the blocks only if the condition is true and stopping after the first true...

View Article

If...else if...else in REBOL

I've noticed that REBOL doesn't have a built in if...elsif...else syntax, like this one:theVar: 60{This won't work}if theVar > 60 [ print "Greater than 60!"]elsif theVar == 3 [ print "It's 3!"]elsif...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images