Script Library: 1238 scripts
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Discussion posts for script case.r

1
coccinelle
28-Nov-2005 13:03
REBOL

Case is native function

Contents:

Now case is a native function :

>> help case
USAGE:
     CASE block /all

DESCRIPTION:
     Evaluates each condition, and when true, evaluates what follows it.
     CASE is a native value.

ARGUMENTS:
     block -- Block of cases (conditions followed by values) (Type: block)

REFINEMENTS:
     /all -- Evaluate all cases (do not stop at first true case)

Another case function exists also in the cookbook with the following source :

case: func [  
    "Find a condition and evaluates what follows it."  
    [throw]  
    cases [block!] "Block of cases to evaluate."  
    /default  
        case "Default case if no others are found."  
    /local condition body  
][  
    while [not empty? cases][  
        set [condition cases] do/next cases  
        if condition [  
            body: first cases  
            break  
        ]  
        cases: next cases  
    ]  
    do any [
        body
        case
    ]  
]
MakeDoc2 by REBOL- 28-Nov-2005
2
cmdicely
30-Nov-2005 0:22
Well, that was a waste of time then (not really, it was a good exercise, 
if nothing else). 


Really, though, I needed -- well, wanted --  "case" for something 
I was working on, and thought I had seen it somewhere, but it wasn't 
in the docs I checked on the web, and I didn't even think to check 
the console help or the cookbook.


The worst part is I've realized the version I uploaded originally 
is slightly broken...


Blah. Well, next time I'll have to be more careful not to reinvent 
the wheel.
3
sumnerzzupa
24-May-2021 3:55
REBOL

I experienced that also, what I did is I consulted to some experts here in the forum.

Contents:

Louisville Hood Cleaning

MakeDoc2 by REBOL- 24-May-2021
4
mark214
20-Nov-2021 20:20
REBOL

Thank you for this information. carpet cleaning in fresno

Contents:

MakeDoc2 by REBOL- 20-Nov-2021
5
marie
3-Mar-2022 6:19
REBOL

I find it very interesting and very well thought out and put together. I look forward to reading your work in the future.

Contents:

Adam

MakeDoc2 by REBOL- 3-Mar-2022
6
odonnellmon
16-Mar-2022 10:34
REBOL

Some great topics on here and might I say that I was quite engaged in reading this article. Thanks!

Contents:

foundation repair near me

MakeDoc2 by REBOL- 16-Mar-2022
7
coleafonse
17-Mar-2022 7:12
REBOL

Just visit Google

Contents:

MakeDoc2 by REBOL- 17-Mar-2022
8
miyaka22
22-Jul-2022 6:48
REBOL

It’s not as glamorous as designing, but it’s vital to building structures that last. Rocklin Concrete Co.

Contents:

stone veneer

MakeDoc2 by REBOL- 22-Jul-2022
9
patricia
3-Nov-2022 8:07
REBOL

If you have time. Please visit this site bath remodel

Contents:

MakeDoc2 by REBOL- 3-Nov-2022
10
mergescreens
4-Nov-2022 3:16

I had the same experience and sought advice from some of the forum's professionals. | https://unclesamsroad.com/

11
ampva301
9-Nov-2022 18:20

I had the same experience and sought advice from some of the forum's professionals. | https://www.lewisvilleconcretepros.com

12
yurii101
9-Nov-2022 20:29
REBOL

Informative discussion. Thanks for sharing! http://www.sidingcontractorvictoriabc.com/

Contents:

MakeDoc2 by REBOL- 9-Nov-2022
13
johnsjvi95
19-Nov-2022 7:48
REBOL

To direct the user to repack-core, we really need a comparable check in repack.

Contents:

https://facebook.com/MoralSupportCoach

MakeDoc2 by REBOL- 19-Nov-2022
14
mandiripinja
5-Dec-2022 7:51

pinjaman dana jaminan bpkb mobil cepat hanya 1 hari bisa langsung cair dengan suku bunga rendah serta tanpa survey dan bpkb mobil aman untuk seluruh wilayah indonesia.

https://www.justgiving.com/fundraising/mandiripinjamandana

https://ameblo.jp/mandiripinjamandana/entry-12680765607.html

https://ameblo.jp/mandiripinjamandana/entry-12680767540.html

https://ameblo.jp/mandiripinjamandana/entry-12680769727.html

https://ameblo.jp/mandiripinjamandana/entry-12680770493.html

https://ameblo.jp/mandiripinjamandana/entry-12680771364.html

https://ameblo.jp/mandiripinjamandana/entry-12680785558.html

https://ameblo.jp/mandiripinjamandana/entry-12680786359.html

https://ameblo.jp/mandiripinjamandana/entry-12680787122.html

https://ameblo.jp/mandiripinjamandana/entry-12680787855.html

https://ameblo.jp/mandiripinjamandana/entry-12680788647.html

https://ameblo.jp/mandiripinjamandana/entry-12680789550.html

https://ameblo.jp/mandiripinjamandana/entry-12680790188.html

https://ameblo.jp/mandiripinjamandana/entry-12680790735.html

https://ameblo.jp/mandiripinjamandana/entry-12680791419.html

https://ameblo.jp/mandiripinjamandana/entry-12680792163.html

https://ameblo.jp/mandiripinjamandana/entry-12680792608.html

https://ameblo.jp/mandiripinjamandana/entry-12680793459.html

https://ameblo.jp/mandiripinjamandana/entry-12680793916.html

https://ameblo.jp/mandiripinjamandana/entry-12680794272.html

https://ameblo.jp/mandiripinjamandana/entry-12680794619.html

https://ameblo.jp/mandiripinjamandana/entry-12680794959.html

https://ameblo.jp/mandiripinjamandana/entry-12680795284.html

https://ameblo.jp/mandiripinjamandana/entry-12680795637.html

15
crutcherhuyn
20-Dec-2022 22:48
REBOL

That’s why our team works hard to provide fast, reliable service that will get you back on the road ASAP.

Contents:

https://lincolnmobiletruckrepair.com

MakeDoc2 by REBOL- 20-Dec-2022
16
johnsjvi95
13-Mar-2023 7:09
REBOL

Let us handle all of your maintenance needs – whether it’s as simple as an oil change or more extensive repairs; our mechanics have been trained to do it all correctly.

Contents:

Dothan Towing Company

MakeDoc2 by REBOL- 13-Mar-2023
17
crutcherhuyn
13-Mar-2023 17:41
REBOL

Just give us a call and we’ll be happy to help.

Contents:

garage service

MakeDoc2 by REBOL- 13-Mar-2023
18
ampva301
20-Mar-2023 20:04
REBOL

Your insights were incredibly helpful and have already made a difference in my workflow. I appreciate your willingness to share your knowledge and expertise with others in the community.

Contents:

https://www.drywallproscleveland.com

MakeDoc2 by REBOL- 20-Mar-2023
19
marosol
24-Mar-2023 21:35
REBOL

Thanks for this information.

Contents:

drywall contractors

MakeDoc2 by REBOL- 24-Mar-2023
20
saruonhosari
26-Jan 23:39
REBOL

Do not stand outside your car in the roadway to avoid the possibility of accidents or death if a driver doesn't see you.

Contents:

https://bigdaddycharlottetowing.com/

MakeDoc2 by REBOL- 26-Jan-2024