Robbydobbs Posted February 9, 2003 Posted February 9, 2003 I want to be able to run a script that says: If(Code = "1") Perform Script["Dealer Min 100 Max 200"] Halt Script End if The problem I'm having is creating the script "Dealer Min 100 Max 200". This script will contain the calculation: If(Price < 200, "Price * .50", If(Price >= 200 < 1000, "100", If(Price >= 1000 <= 2000, "Price * .10", "200"))). How do I put this calculation into a script? Dobbers
Razumovsky Posted February 9, 2003 Posted February 9, 2003 use set field script step to set your number field. The calc would be a bit easier with case statement: case(Price < 200, Price * .50, Price >= 200 and Price < 1000, 100, Price >= 1000 and Price<= 2000, Price * .10, 200) this returns 75 for price=150, 100 for price= 500, 160 for price=1600, and 200 if price is >2000 HTH -Raz
Robbydobbs Posted February 10, 2003 Author Posted February 10, 2003 Thank you, I'll do that. Thanks again for your help. Dobbers
Recommended Posts
This topic is 7961 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