Answers for "smarty shorthand if"

PHP
0

smarty shorthand if

// Besides true and false, you can also use 1 or 0
// You have to use brackets around the condition,
// even if its just a single var.

{($bloke) ? 'Male' : 'Female'}
Posted by: Guest on January-10-2022

Browse Popular Code Answers by Language