True?
[1/3] from: depotcity:telus at: 9-May-2001 21:53
Simple question, baffling solution (for me anyway)
a: true
b: true
c: false
d: false
e: [a b d]
f: false
or...
a: true
b: true
c: true
d: [a b c]
e: true
How can I make e either true or false. If ALL values of d are true, then e is true as
well, otherwise false.
Thanks
TBrownell
[2/3] from: allen:aussieweb:au at: 10-May-2001 15:17
----- Original Message -----
From: "Terry Brownell" <[depotcity--telus--net]>
To: "Rebol List" <[rebol-list--rebol--com]>
Sent: Thursday, May 10, 2001 2:53 PM
Subject: [REBOL] True?
> How can I make e either true or false. If ALL values of d are true, then e
is true as well, otherwise false.
Hi Terry,
I think the answer was in your question.
a: true
b: true
c: true
d: [a b c]
e: all d
== true
a: true
b: false
c: true
d: [a b c]
e: all d
== none
; or if you want a true/false answer instead of true/none
a: true
b: true
c: true
d: [a b c]
e: found? all d
== true
a: true
b: false
c: true
d: [a b c]
e: found? all d
== false
Cheers,
Allen K
[3/3] from: depotcity::telus::net at: 9-May-2001 23:17
Hi.
That's just too easy... :)
Terry