View Full Version : Yes/No Parameters
pwmsmith
2010-11-04, 01:42 PM
I am trying to drive a third parameter (C) to be 'Yes' with two other parameters. Parameter (A) must be yes, and (B) must be no. Can not seem to get the right combo and could use some help.
Thanks
Pat
pwmsmith
2010-11-04, 03:31 PM
Got it:
C=and(A,D)
D=not B
Thanks
Alex Page
2010-11-04, 08:36 PM
What you have done works well, but you dont actually need parameter "d""
c=and(a,not(b))
pwmsmith
2010-11-05, 04:17 PM
Alex,
That is what I thought, but could not make it work with my geomerty. Had to resort to the extra parameter.
If you are interested I have attached to family, so have a look. Its a nested double/single toilet with partition family and visibility switches for various conditions.
Pat
Alex Page
2010-11-06, 10:58 PM
It doesnt really matter.
Also, when you have a bit more going on like your attachment it makes complete sense to break the parameters up like you have done so it is easier to see whats going on (especially if you come back in the future and add more parameters).
The only thing I would do different is (refer your attachment) change the calculation formulas to use the "extra" parameters you have created ...ie:
Your Parameters:
Door Right Second Stall = and (not(Door Left), Second Stall)
Door Right = not (Door Left)
My Suggestion:
Door Right Second Stall = and (Door Right, Second Stall)
This makes it "easier" to read and to work out whats going on and easier to update if required (ie: If Door Right formula needs to change)
Just my opionion on Best-pratice
Alex
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.