From the true&false list, I would like to check if there is the true element"

unhandled

(Jhyunetp1) #1

Hi all,

I was able to get a lot of helps from this wep.

I met another challenging problem here.

“From the true&false list, I would like to check if there is the true element”

unfortunately, picking out the true was not easy …

anyone who can help me?

Thank you formally in advance


(Tim Stark) #2

If you have a True/False Pattern, you could use it for examle in “Dispatch” or “Cull Pattern” component.


(David Rutten) #3

Use Mass Addition on a list of booleans. The booleans will be converted into integers (false=0, true=1) so if the addition of all elements is bigger than zero, there was at least one true.


(Jhyunetp1) #4

David! I thought your idea is really simple

but I tried and failed… anything wrong?


(David Rutten) #5

Those aren’t true false values, those are text saying either “true” or “false”. You’ll have to convert your text into actual boolean data first, you can do so by inserting a Boolean parameter in between the panel and the mass addition.


(Jhyunetp1) #6

I really appreciate your help David.

It was my bad habit that I used panel while getting the output.

Thank you so much!

@tim.stark Thank you so much Tim as well!!