Tests if the template parameter with the specified name has the specified value.

The function returns the same result as the following expression:

getParam(paramName) == value
(However, the function will work a bit faster.)

Parameters:

paramName

The name of the template parameter whose value is to be tested.

If the template has no parameter with that name, an error will be raised.

Note: The parameter name may be omitted only when this function is called within enabling conditions found in the definition of a template parameter. That will mean the access to the value of this very parameter itself (being defined).

value
The value with which the parameter value is to be compared.
Returns:
true if the parameter value is equal to the specified value;
false otherwise
See Also:
getParam()