Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7961 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.