Cant use "imperative function" on number

Hi! I’m a new user in Dynamo. I have a prob with the “if statement”. I don’t see the mistake here (I’ve used the same function for another problem and it works!). I would be very thankful for any help

That’s a list with your number in it, not a number. Since you’re in Imperitive code Dynamo won’t make use of lacing or replication guides.

Try changing line 1 to t5 = a[0]; and wire your number into the a input of the code block.

1 Like

Thanks! It works perfectly