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.

Using < and > (kinda a newb question)

Featured Replies

Hello everyone! Its nice to find a good Filemaker pro forum! (my first post)

Ive created a simple script to basically add up the isEmpty of 3 fields are filled out. The reason I created this is to make sure that all 3 fields are filled or nothing. Else it will give a generic message.

----------------------------------

[color:"green"]Problem:

Is there a way to add "and >0" after the >3? I get a error when I try

(this is in a if)

If(

((If( IsEmpty(LBS1A) , 0 , 1 )+

If( IsEmpty(LBS1B) , 0 , 1 )+

If( IsEmpty(Price1) , 0 , 1 )) < 3)

, 1 , 0 )

  • Author

Ahh I figured it out hehe smile.gif

heres what I did incase someone cares hehe grin.gif

If(

( ((If( IsEmpty(LBS1A) , 0 , 1 )+

If( IsEmpty(LBS1B) , 0 , 1 )+

If( IsEmpty(Price1) , 0 , 1 )) <3) >0)

, 1 , 0 )

  • Author

err lol I thought I fixed it but its not working correctly... it seems to ignore the >0 because if I fill in nothing it gives me my generic message..

frown.gif

anyone have any ideas?

( not IsEmpty(LBS1A) + not IsEmpty(LBS1B) + not IsEmpty(Price1) ) < 3 and ( not IsEmpty(LBS1A) + not IsEmpty(LBS1B) + not IsEmpty(Price1) )

I haven't tested it, but it should be close to what you're doing.

  • Author

Thanks for the reply. I tried that it didnt work. but I modified to this for it to work..

( IsEmpty(LBS1A) + IsEmpty(LBS1B) + IsEmpty(Price1) ) < 3 and ( IsEmpty(LBS1A) + IsEmpty(LBS1B) + IsEmpty(Price1) >0)

I sorta knew this would work but I was hoping to do it without repeating the the IsEmpty commands again so It would maybe be faster and less code space smile.gif

I have to really do this for about 20 lines of code really hehe so I have a need for speed

Hi AviroTech,

I believe you'll find that:

Abs(IsEmpty(LBS1A) + IsEmpty(LBS1B) + IsEmpty(Price1) - 1.5) = 1.5

will produce the zero or one result you are looking for without the necessity to repeat the IsEmpty( ) functions. wink.gif

  • Author

Abs(IsEmpty(LBS1A) + IsEmpty(LBS1B) + IsEmpty(Price1) - 1.5) = 1.5

This worked but I added a

not (Abs(IsEmpty(LBS1A) + IsEmpty(LBS1B) + IsEmpty(Price1) - 1.5) = 1.5)

and works perfect...

I never thought of that smile.gif very smart

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.