Thanks in advance for your help.
I started with some Python programming for elaborating Python nodes in Dynamo.
I tried to create a list and adapt the list items by using a PhytonScript. If i use a custom list at IN the script doesn´t add a praefix neither adds a value to the list items (it works correctly if i don´t change the input list).
First approach (ok)
Second approach with custom list (not like expected)
I already tried to reproduce the problem in a python online compiler, but in the online compiler the expected result get displayed (?). Link to SO question:
Dynamo-file with PythonScript:
PythonScripting.dyn (18.7 KB)
> listing = [0,1,2,3,4,5,None,"null", "", "Text"] > praefix = IN > add = IN > > if IN: > listing = IN > > if IN: > for x in range(len(listing)): > if isinstance(listing[x], int): > listing[x] = praefix + str(listing[x] + add) > > OUT = listing > > else: > > for x in range(len(listing)): > listing[x] = listing[x] + add > > OUT = listing > ```