You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.
Dynamo version
1.2.0.2690
Revit version
2017.1
Operating system
Windows 7
What did you do?
I'm using a conditional statement in a code block, when the input "a" is greater than 3 it should return a list of the inner elements, otherwise a list containing only the second item. Here is the formula.
output = Count(a) > 3 ? a[1..Count(a) - 2] : {a[1]};
The above formula always return the false member. If I remove the curly brackets from the false member if works properly but I need a list of 1 item and not just the item
The text was updated successfully, but these errors were encountered:
paoloemilioserra
changed the title
Code Block Conditional Statement return wrong value
Code Block Conditional Statement returns wrong value
Nov 22, 2016
If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.
Dynamo version
1.2.0.2690
Revit version
2017.1
Operating system
Windows 7
What did you do?
I'm using a conditional statement in a code block, when the input "a" is greater than 3 it should return a list of the inner elements, otherwise a list containing only the second item. Here is the formula.
output = Count(a) > 3 ? a[1..Count(a) - 2] : {a[1]};
What did you expect to see?
let's a = {0, 1, 2, 3} -> output = {1, 2}
let's a = {0, 1, 2} -> output = {1}
What did you see instead?
The above formula always return the false member. If I remove the curly brackets from the false member if works properly but I need a list of 1 item and not just the item
The text was updated successfully, but these errors were encountered: