Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 1 match
Smarty Forum Index
Author Message
  Topic: Short Form of IF - {$var ? 'foo' : 'bar'}
kloshar4o

Replies: 3
Views: 39893

PostForum: Feature Requests   Posted: Sat Feb 23, 2019 7:30 pm   Subject: Short Form of IF - {$var ? 'foo' : 'bar'}
I dont know why is it so hard to find this on the internet, but here it is :

{($bloke) ? 'Male' : 'Female'}
 
Page 1 of 1
All times are GMT
Jump to:  


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