Announcement

Collapse
No announcement yet.

Boolean OR for list

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Boolean OR for list

    Hello all,

    Logic / Action / or you can insert any number of booleans and it will pass true if any of them are true. Is there a way to do this with a list of booleans rather than just one. You can use || for two list but what if I want more. Always more!



    Thank for you help,
    Steven
    Attached Files

    #2
    How about something like this? Create your list and transpose so that the sublists are the "answers" for each item, then ask if any members of the sublist contain TRUE:
    Attached Files
    Chris Ellersick

    Comment


      #3
      Thats a great solution. Thank you Cellersick. It would be nice if OR would work on list but what you said will work for now.

      Comment


        #4
        You can use || instead, also in a code block
        Attached Files
        Last edited by Yna_Db; September 16, 2017, 10:48 PM.

        Comment


          #5
          As mentioned by Yna_Db this is the Code Block version!

          Attached Files

          Sol Amour

          Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
          Portfolio Website @ Cargo Collective

          Comment


            #6
            Thanks guys those are all great ideas.

            Comment

            Related Topics

            Collapse

            • List Clean on Another List
              Good day all,

              Is there a way to use List.Clean and know which list items were removed so I can remove the same items from another list? ...
              September 28, 2017, 04:42 PM
            • List Replace Items
              Hello all!

              I am trying to "combine" two lists into one cohesive list.

              In List 1, I have list items that are "empty"...
              November 30, 2015, 05:28 PM
            • Reading Painted materials from walls?
              I've just been down a rabbit hole trying to find an answer to this but a pretty straightforward question - is there a way with Dynamo to read the material...
              August 19, 2020, 08:47 PM
            • The "official" RFO Wish List 2011
              Revitforum.org is proud to present the very first ”official” RFO Wish List! After months and months of suggesting new features, rating them,...
              February 14, 2012, 03:15 PM
            • Trying to iterate through a list of strings
              Hi Team,
              Maybe one you gurus can help me out. I'm trying to step through a list of strings assigning each one to an instance parameter of a...
              September 11, 2018, 05:07 PM
            Working...
            X