Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Can you use "conditionals" with variables?

What I mean here is can you do things like; if x>10 then y=0.5*x else y=x. What about logical functions like AND and OR? If conditionals and logicals could be used, then I could easily "program" multiple variables to change off one or two primary parameters. For example, enter a woodruff key number (i.e. 204) into a variable and use conditional logic to set all of the dimensions. Diameter and thickness can be done without conditionals, but the offset cannot, it varies from size to size.

On the other hand, can FS be used to just import existing variables and set values to new variables that can be used in a part model without actually making any geometry?

Best Answer

Answers