Repeat if else for all elements in list issue

Hello, I’m trying to solve this problem, but I couldn’t figure out what is the problem I’m trying to repeat this code block to every single item in the list, but it didn’t work

No need to go with imperative here, a nested if statement should do just fine.

value == “60min” ? “45min” : value == “120min” ? “90min” : “0min” ;

To make it work with an imperative code you would need to tell Dynamo to loop over all values, including a for statement in your code.

Thank you a lot @jacob.small

1 Like