I want to have an IF statement that checks whether the scriptname ends with '-dictionary'. I'm not sure how to do the first variable part. This is my attempt so far but not working {if $scriptname == "*.-dictionary"}
Hi, There are substr function for smart which could be quite helpful: {if {$scriptname|truncate:-11} == "-dictionary"} Code (markup):
Thanks. Thanks to Bruce from phpLD, I ended up using the substr function. {if $scriptname|strstr:"-dictionary"}