switch or case statement?
[1/2] from: princepawn::lycos::com at: 5-Sep-2000 7:20
I thought that REBOL had a switch or case statement. Doesn't it?
---
; run this in your
; <a href=http://www.rebol.com>REBOL</a> Interpreter!
terrence-brannon: [ [princepawn--yahoo--com] perl-refugee myth-gamer ]
perl-refugee: [ 'loved href perl discovery: (metaperl = rebol) 'hates href perl ]
myth-gamer:http://www.bungie.net/bin/stats.pl?player=princepawn
; angles makes this a href instead of code! use ur imagination!
href: func [U T] [ rejoin [ "a href=" U ">" T "/a" ] ]
perl: href http://www.perl.com "Perl"
[2/2] from: allen:rebolforces at: 6-Sep-2000 0:47
----- Original Message -----
From: <[princepawn--lycos--com]>
To: <[list--rebol--com]>
Sent: Wednesday, September 06, 2000 12:20 AM
Subject: [REBOL] switch or case statement?
> I thought that REBOL had a switch or case statement. Doesn't it?
>
? switch
USAGE:
SWITCH value cases /default case
DESCRIPTION:
Selects a choice and evaluates what follows it.
SWITCH is a function value.
ARGUMENTS:
value -- Value to search for. (Type: any)
cases -- Block of cases to search. (Type: block)
REFINEMENTS:
/default
case -- Default case if no others are found. (Type: any)
(SPECIAL ATTRIBUTES)
throw
Cheers,
Allen K