If there is different, then how to fix it if I want to use list from Excel?
1.dyn (16.1 KB) 1.xlsx (8.3 KB)
If there is different, then how to fix it if I want to use list from Excel?
Try
"0";
instead of:
0;
Data from Excel might be imported as strings and that’s the reason Dynamo doesn’t treat them as equal.
“0” doesn’t work for any list.
Wire an Object.Type in after the x[0] code block so we can see what the data types are.
0 (Int64) works for list in code block, while 0.0 (double) works for list from Excel