<?php
namespace Engine\Smarty\Modifiers;

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty {if} modifier plugin
 *
 * Type:     modifier<br>
 * Name:     if<br>
 * Purpose:  C++ style of if , alternative to block function<br>
 * @link http://dcsfastlink.ro {math}
 *
 * @param variable
 * @param true value
 * @param false value
 * @return true|false
 */
class IfModifier
{
	static public function create($var, $true, $false='')
	{
		return (bool)$var?$true:$false;
	}
}