nelliott Posted March 19, 2002 Posted March 19, 2002 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?
DykstrL Posted March 19, 2002 Posted March 19, 2002 Try This: If(PatternCount(Field1,"XXX")=1) do this
danjacoby Posted March 19, 2002 Posted March 19, 2002 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.
nelliott Posted March 20, 2002 Author Posted March 20, 2002 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"
andygaunt Posted March 20, 2002 Posted March 20, 2002 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")
nelliott Posted March 20, 2002 Author Posted March 20, 2002 Cheers Andy (again!) and everybody else for their input
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now