Answer the question
In order to leave comments, you need to log in
smarty question - if construct
Good day. Sorry if this is a dumb question, I just don't understand it well.
There is a site with templates, smarty is used. I have written a function that replaces {free} in the template with one.
I need to do something to make it If 1 - then something, if not - something else.
Well, roughly speaking, you need to display different content depending on this unit.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question