Learn
Explore
Blog
Forum
Roadmap
Resources
Primer
Dictionary
Developer
Builds
Events
DesignScript Guide
Help Center
Get Dynamo
Privacy
Dynamo
How to set variable movement range
565384351
January 23, 2022, 3:43pm
1
image
1107×346 20.6 KB
Does anyone know what’s wrong? I want to set y in the range 10<y<110, if y in the range of 10<y<28 or 105<y<110, then return value y, if not, return o.
EdsonMatt
January 23, 2022, 3:51pm
2
Syntax error. Try this:
y>10 && y<28 || y>100 && y<110? y:0;
565384351
January 23, 2022, 3:57pm
3
Thank you very much!
Related topics
Topic
Replies
Views
Activity
Smaller then, larger then in a code block
DesignScript
7
2061
February 9, 2018
Working with if statements in code block
Revit
2
417
May 15, 2021
Multiple Mathematical operations
Dynamo Player
revit
,
excel
,
dynamo
5
473
May 7, 2022
Operations wont work as expected
Revit
dynamo
4
382
December 25, 2018
Simple renumbering exercise
Packages
16
1018
February 9, 2016