# 布尔字面量

布尔字面量是`true`和`false`。比如：

```markup
<div th:if="${user.isAdmin()} == false"> ...
```

在这个例子里，`== false`写在了花括号的外面，所以Thymeleaf会照看它。如果它写在花括号里面，则由OGNL/SpringEL引擎负责：

```markup
<div th:if="${user.isAdmin() == false}"> ...
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jack80342.gitbook.io/thymeleaf/i.-using-thymeleaf/4-standard-expression-syntax/4.6-zi-mian-liang/boolean-literals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
