Tyra Posted March 28, 2007 Posted March 28, 2007 This is probably a easy one, stops returning false on color after I add the second color condition. For example always returns true if either "Make" is true. If I take out one of the color conditions, then works fine. If [((Car::Make = "Geo")or(Car::Make = "VW")) and ((Car::Color ≠ "Silver")or(Car::Color ≠ "Black"))
Genx Posted March 28, 2007 Posted March 28, 2007 I'm sorry i don't understand the problem.... what's it meant to do?
Tyra Posted March 28, 2007 Author Posted March 28, 2007 If the user picks from the drop down menu either "Geo" or "VW" and any other color other then "Silver" or "Black" they will recive a custom dialog box that explains we cant have that car in stock.
comment Posted March 28, 2007 Posted March 28, 2007 At first glance: "Silver" ≠ "Black". It seems you want: ( Make = "Geo" or Make = "VW" ) and ( Color ≠ "Silver" AND Color ≠ "Black")
Tyra Posted March 28, 2007 Author Posted March 28, 2007 Ok, yea... that makes sense.. I also simplfied my quotes to match yours, and great! it works. Thank you.
comment Posted March 28, 2007 Posted March 28, 2007 Good. I would also suggest you re-think your strategy of hard-coding data into scripts and calculations, and use relationships instead. What if Geo becomes available in red? Using relationships, you can even limit the user's color choices based on the selection of the make (search the forums for "+conditional +value +list").
Recommended Posts
This topic is 6452 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now