Jump to content

This topic is 8355 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I want to perform a script depending on the content of a field. I have tried

IF field1 ="xxx" or field1 ="yyy" or field1 ="zzz"

End IF

But I want the script to perform if "xxx" is also only part of the field content and not an exact match of the contents of the field

Any Ideas?

Posted

Almost:

If(PatternCount(field1, "xxx") or field1="yyy" or field1="zzz", "yes", "no")

Or you can substitute for "yes" and "no" with whatever the end results should be.

Posted

Sorry, I should have explained myself better. I need the script to perform if "xxx" or "yyy" or "zzz" etc are only part of the field content and not an exact match of the contents of the field not just "xxx"

Posted

OK,

then try this. Dan was almost there with

quote:


If(PatternCount(field1, "xxx") or field1="yyy" or field1="zzz", "yes", "no")


If(PatternCount(field1, "xxx") or PatternCount(field1,"yyy") or PatternCount(field1,"zzz"), "yes", "no")

This topic is 8355 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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