This one can get a little "tricky", but it can be done.
I am not sure how to explain, so see if this example helps
Parameter Value Formula
TwentybyTwenty Yes/No =
FortybyTwenty Yes/No =
Custom Yes/No =
Length = if(TwentybyTwenty,20,if(FortybyTwenty,40,if(Custom,CustomLength,"")))
Width = if(TwentybyTwenty,20,if(FortybyTwenty,20,if(Custom,CustomWidth,"")))
CustomLength "SomeValue" =
CustomWidth "SomeValue" =
This should work
Set Length and width to the distance parameter.
Where the "" is in the formula you can substitute in some default value, if it gives you an error. I have typically changed it some text that says "None Selected", but if you have set the parameter type to Distance, then it will give you an error.
Where "SomeValue is written" You can put in some default value you in, incase no one checks a value.
In an if statement, there is no value, like there is in Excel or C programing. It is either true or not true. So all you have to do is enter the parameter name.
Give that a whirl, and see if you can make this work for your application.
Let me know if this makes since. If not I will try to make it more clear.