Loading...
 
 Error
  • Contact the site administrator. The index needs rebuilding.
Features / Usability

Features / Usability


How to check if a string exist in 2 smarty variables

posts: 8633 Israel

Thank you dear jonny.

Ok I got your idea... I tried to create a conversion additional code but though I was overdoing something for what we may have a solution.

So for the relation field value only, grab the second word with a "preg_match_all"
preg_match_all ("\s+^\s+", $paymentref, $paymentrefmonth)

and convert each month (string) by a number.
{if $paymentrefmonth eq "January"}{$paymentrefmonth = 01}{elseif $paymentrefmonth eq "February"} ....

Then do the comparison...

There are no comments at this time.