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.

if field = zero then say this!

Featured Replies

Hi Everyone. Soon be Saturday!!!

Any ideas on how I can amend the below script such that if the output is 0.0 then it states "text of my choice"

Alternatively

Some other separate sciprt that I can add that with tell a field to state "something" when the field calcuation = 0.

Thanks all

Let([

start = Cosmet2010::Margin of Safety Baby [zz__kf__Cosmet2009RepNum] ;

integer = Int ( start ) ;

decimal = start - integer ;

decimal1 = Substitute ( decimal ; "." ; "") ;

decimal2 = Left ( decimal1 & "0" ; 1 ) ;

result = "MoS - Baby 5.9kg: " & integer & "." & decimal2

];

result

)

Case( start + 0 = 0 ; "something" ; result )

The "+0" is to handle if the field is empty. Slightly simpler than:

Case( IsEmpty( start ) or start = 0 ; "something" ; result )

  • 2 weeks later...
  • Author

Thanks but how do I add this new text into what I already have. Sorry I am an basic user.

Use the calculation I supplied in place of the final "result".

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.