Group Abstract Group Abstract

Message Boards Message Boards

0
|
6K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Making And[] and Or[] work with lists

2 Replies

Thanks -- I'll add them to my toolkit.

Posted 5 years ago

Hi George,

Other ways to do this

And @@ {True, False, True}
(* False *)

AllTrue[{True, False, True}, Identity]
(* False *)

And[Evaluate[Sequence @@ {True, False, True}]]
(* False *)

Or @@ {True, False, True}
(* True *)
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard