Dynamo: Dynamic ranges in code blocks

Ranges can be defined in code blocks. One of the ways to do is to specify a start value, the end value and a step value:


But what if the end value is not divisible by the step value? In that case you will not reach the end value, so the end value will not be included in the list. In the following example I’m creating a range between 0 and 500 with a step value of 80. The list ends with the value 480…


What to do if you really want to have 500 in the list?
In that case you can tell Dynamo that he can deviate, if necessary, the step value a little bit, to evenly fill in the range with equal values:



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s