Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Poseidon2 Posted July 16, 2020 Posted July 16, 2020 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
bfarber Posted July 17, 2020 Posted July 17, 2020 {{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>"; }
Recommended Posts