If a field contains partial text...then what function do I use?
I'm writing a script in which I want to see if the field has a word in it...and if so..then do something. so...
If [CREW::CREW Skill = "EDITOR"]
But what I really want this to say is if this field HAS the word anywhere in it.
I don't know which text function to use to express this..and I've been looking all over the forums. Usually when this happens..the answer is not direct or appeared logical in the answer. This is where I get stuck when I'm searching for terms and I can't find the answer. I'm expecting to find a simple answer like = "*EDITOR*" and that would be the way I should've written it. But it the answer is not as simple as that or as "intuitive", logical or natural response to the problem.
PatternCount ( CREW::CREW Skill ; "EDITOR" )
will return the number of times "Editor" is contained in the Crew skill field. Since a non-zero number evaluates as true in an If step's expression,
If [ PatternCount ( CREW::CREW Skill ; "EDITOR" ) ]
Is probably all you need to determine that "editor" is contained in the text in the field.