# Tag
[JSP Standard Tag Library](#)
The tag evaluates an expression and executes its body content only if the expression's value is true.
### Syntax
<c:if test="" var="" scope=""> ...
### Attributes
The tag has the following attributes:
| **Attribute** | **Description** | **Required** | **Default Value** |
| --- | --- | --- | --- |
| test | The condition to evaluate | Yes | None |
| var | Variable to store the result of the condition | No | None |
| scope | Scope of the 'var' attribute | No | page |
## Demo Example
c:if Tag Example 2000}">
My salary is:
The result is as follows: My salary is: 4000
* * JSP Standard Tag Library](#)