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.

Featured Replies

  • Newbies

Hello!

 

I apologize if this post is not in accordance with forum custom; I'm brand new here!

 

This calculation isn't working and I can't figure out why.

 

Case ((IsEmpty(TimeReturned) and MusicDue="no" );"Current";(IsEmpty(TimeReturned) and IsEmpty(Library Inventory::Paid) and MusicDue="yes");"Due";TimeReturned > 0;"Returned";Library Inventory::Paid > 0;"Paid")

 

I just added the final portion -

LibraryInventory::Paid>0;"Paid"

 

The first three results work everytime - Current, Due, and Returned.  But when the qualifications are met for "Paid," it still reads "Due."  Any thoughts?

 

Thanks,

Matt Swiss

The Case() function returns the result of the first test that evaluates as true.

Yep, it should work if you put the new "Paid" test first.

In fact, from what I can work out (I'm guessing "> 0" is checking the fields are not empty), if you put both of the last two tests at the front,

i.e.

Case (
      Library Inventory::Paid > 0; "Paid";
      TimeReturned > 0; "Returned";
      MusicDue="no"; "Current";
      MusicDue="yes"; "Due";
     )
then you don't need to worry about the IsEmpty parts of the two MusicDue tests.

If Library Inventory::Paid > 0 (is not empty) then the Case statement returns "Paid" and stops.

If ReturnedTime > 0 (is not empty) then the Case statement returns "Returned" and stops.

If the Case statment has got past those two and is still testing, then both ReturnedTime and Library Inventory::Paid must be empty, so the extra IsEmpty functions become redundant.

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.