Extract elements from list, Dynamo

Hi everyone,
Does anyone know how to extract from this list only the items that are of family type with the name “M_Dimension Lumber”?

Thanks in advance

1 Like

@krzysiektoja ,

do it with a codeblock

//via bool
x == "M_Dimension Lumber" ? true : false

i think in your case you have to convert to string f.e. like

//ToString
x+"";

KR
Andreas

1 Like

hmm could you please take a look at this? I’m not sure why it’s not working.!

1 Like

@krzysiektoja ,

you have to “feed” the codeblock! x :slight_smile:

1 Like


assuming all data is text (global comparison not partial)

1 Like

ok, but with it still not working

edit: 3 possible ways


x+""==x[2]+""?true:false;
cordially
christian.stan

you can get the type name then filter by string

3 Likes