Jump 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.

"Yes" if "field1" is equally divisible by "field2"

Featured Replies

Is it possible to have a calculation that returns "yes" if the number in "field1" is equally divisible by the number in "field2"?

For example, 4 divided by 2 would return "Yes"

8 divided by 5 would return "No"

LR

Have a try with

Choose(Mod(YourNumber1,YourNumber2),"Yes","No")

Unless equally means something else

Version: v6.x

Platform: Mac OS 9

Good call with the Choose function!

Oops--Don't think that Choose function works for "No". Since the Mod() function returns the remainder of the division, I think the only way to check it properly is:

If(Mod(YourNumber1;YourNumber2);"No";"Yes")

Absolutely !

Unless we change it to :

Choose(not MOD(field1,field2),"No","Yes") smirk.gif

The only difference between the 2 methods is that if both fields are empty, Choose would return No, while If would stay Blank

Version: v6.x

Platform: Mac OS 9

Hi Ender,

Ugo's calculation worked for me, but the calculation field needed to have a result of "Number", a result of "Text" did fail.

Lee laugh.gif

Version: v6.x

Platform: Mac OS 9

  • 2 weeks later...
  • Author

Great solutions. Just what the doctor ordered. THANKS.

LR

Create an account or sign in to comment

Important Information

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

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.