Jump to content

Theme codage documentation


Go to solution Solved by Ryan Ashbrook,

Recommended Posts

Posted

Hi all.

It will sound strange to you but, even if I know how to developp with standard langage like C++, QT and so one, I can't even make a if working fine on my theme....

I tried a basic thing that did not work :

{{if  {$value} == 'yes'}} <b> OK! </b>

{{endif}}

(to only show something if a checkbox is selected)

And it did not work at all 🙂 

 

So I am looking for some kind of documentation to allow me to stop bothering you at each problem I have 🙂

Thanks in advance.

Florian

Posted
{{if  $value == 'yes'}} <b> OK! </b>

{{endif}}

You don't need curley brackets around the variable in an if statement. The above is translated basically to

if( $value == 'yes' )
{
	print "<b>OK</b>";
}

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...