Loading...
 
Features / Usability

Features / Usability


How to check if a string exist in 2 smarty variables

posts: 8632 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.

Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
3)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8) 
Tiki birthday
9)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  21 Nov 2024 15:00 GMT-0000
Tiki Roundtable Meeting