Hello Dynos,
I think this is easy for everybody:easy.dyn (2.1 KB)
I have numbers, i would like to filter them for example all my “6” numbers or “2” numbers, in my watch block,
is here the for-loop usefull?
I have realy no clue, thank you for any advice
Kind regards
Andreas
Hi @Draxl_Andreas ,
I’m not sure I understood properly.
You can do it with dynamo nodes without python.
items = IN[0]
filter = IN[1]
numbers = []
for i in items:
if filter == i:
numbers.append(i)
else:
continue
OUT = numbers
2 Likes
Or the node method:
An == node, and a List.FilterByBoolMask node.
Or a code block method:
List.Clean( item == target? item: null, false);
2 Likes
I try find a analogie to this - look at pic
I try to force me more to use python, because i can comprimise all my scripts… and it is an excerce! Realy thank you very much, this is for me a small step in a marathon
I see it is also works without else: continue working!
How about the command .mirrored - I did not find this command in any dictionary? Where are the vocabulary? in Revitdocs? or Dynamo diconary?
How can i find them - i mean exactly the syntex… and how can i put it?
Look in the API :
Please start a new topic for a new question. This message has nothing to do with your first post.
One of the main goals of the Dynamo community is to help others. One way to do that is by answering your questions. But to get the right answer, you’ll first have to ask your question in the right way. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions on how to achieve that. Do not think of these suggestions as rules and especially do not take them as a guarantee of getting an an…
1 Like