I have 2 holes that can be no further than 36" from each other. I am trying to set up an equation for the dimension between them. So far what I have is:

a=<intended dimension> (whatever the user types in)

b=36

c= IFF(a>b; b; a)

D4@Sketch27 = c

I can't figure out what would go in the place of <intended dimension> so that the typed dimension can be compared to the maximum allowed value in the equation.

Thoughts?

Now I'm just guessing at this....but I used a sketch to drive the hole spacing.

The base dims drive the sketch size. The sketch drives the hole spacing up until 36" which I used the IIF function along with the global variables I assigned.