📜  smarty 简写 if - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:18.890000             🧑  作者: Mango

代码示例1
// 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'}