Conditional Test for Text String
Hi,
I need to know how to test a variable for the first 10 letters of the variable string. For example,
I have a variable that could have the following values.
1. Buy Now Get ...
2. Buy 3 Save ...
3. $1 OFF ...
I need to test the first 10 characters for the Buy 3 Save $25.80 or it might say Buy 3 Save $16.80. In either case I need the {if} test to test for the Buy 3 Save presence and ignore the others.
How would I do a partial text compare like that?
Thanks,
Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************
Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
|