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.

AND operator in a conditional test

Featured Replies

How should the syntax of the AND operator be used in a conditional test. I want to format an if statement to return true for two tests. One of the tests is a NOT isblank(fieldname) test and the other is Status (Currentfieldname)= "phone1number". Both these tests tied together with an AND operator. Ive tried various ways to syntax this and cannot get it to work. Any ideas?

use brackets.

(NOT isblank...) AND (Status....)

The AND operator is a complete separation, so (for instance) if you want to make sure that A equals B and A also equals C, you can't say "If(A=B AND C...", but rather "If(A=B AND A=C..."

In your case, this probably doesn't apply, so I suspect the CurrentFieldName part is the problem -- it's a tricky sonofagun, that one is.

if calc is unstored, it's maybe not Status(CurrentFieldName) but rather the isblank() calc - it sometimes yields strange results with time and date fields.

to check for Status(CurrentFieldName), simply use the calc in a script - if it works there, then it's a problem with updating Status(CurrentFieldName).

as for the brackets - if you are using NOT in an AND/OR/XOR test , it's probably safer to include them, but i verified - it works the same without them

  • Author

Thanks for the response. Your right about the status(currentfieldname), a tricky one. What I was trying to do was execute a conditional script based in part on status(currentfieldname). I have a button that executes the script but the button is sitting on top of the field I'm trying to identify with the status function. Doesn't seem to work because the cursor is not technically active in the field itself. I'll just try some other way around it.

Thanks again.

Can't you do a "Go to Field" before doing the Status?

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.