Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 1 match
Smarty Forum Index
Author Message
  Topic: Ternary Operator within the template
Traumflug

Replies: 2
Views: 42148

PostForum: Tips and Tricks   Posted: Sun Jun 16, 2019 5:56 pm   Subject: Ternary Operator within the template
{('N'==$member.is_admin)?'Yes':'No'}

... nine years later ...

Secret here are these parentheses around the conditional. They're needed even for functions and methods. This ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP