Philip Jenks Posted March 21, 2012 Posted March 21, 2012 Hi I'm trying to write a script which says: "If [ProductName] includes the word "Jacket"; .36; .15" where the numbers are the weights of packaging used in sending the garments. "Jackets" use packaging that weighs 360g. All other products use packaging that weighs 150g. I don't know how to write the "includes" bit. The word Jacket could appear at the beginning of middle or end of the Product Name. Any clues? Thank you.
comment Posted March 21, 2012 Posted March 21, 2012 Try the PatternCount() function? Note that it looks for a string, which is not the same thing as a word. It would be probably best to have dedicated field for the product type.
Recommended Posts
This topic is 4628 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