Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run a Calculation

Featured Replies

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

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

  • Author

Thank you, I'll do that. Thanks again for your help.

Dobbers

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.