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.

IF statement to check last word in field

Featured Replies

Is there a variation on the IF statement that can be used to check for a match for the last word in a field?

LR

Do you mean something like Case( RightWords( fieldname, 1 ) = "this", ... ) ?

Hi

If this is for use in a calculation field, try this,

Case( RightWords( YourField, 1 ) = "WordToCheck", "Yes", "No")

If it is for use in a script, then,

IF["RightWords( YourField, 1 ) = "WordToCheck""]

Whatever you want if true...

ELSE

Whatever you want if false

END IF

Ed.

Sorry Queue, you beat me to it!

Case(rightwords(YourTestField,1)=YourMatchField, YourDesiredResultIfPositive, YourDesiredResultIfNegative)

-Raz

ed:

Third fastest fingers in the west...

You mean East cool.gif

Of course, you are west relative to Eddy!

Think I better get the old Meavis Beacon Teaches Typing Program out!

  • Author

The ones above worked out great. I in fact had a combined calc that this solved all the problems.

Case(rightwords(Field,1)=MatchField, ResultPositive,

leftwords(Field,1)=MatchField, ResultPositive,

ResultNegative)

LR

Or Case( RightWords( Field, 1 ) = MatchField or LeftWords( Field, 1 ) = MatchField, ResultPositive, ResultNegative) for short...

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.