> For the complete documentation index, see [llms.txt](https://temp-17.gitbook.io/trmenu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://temp-17.gitbook.io/trmenu/chinese/script/expressions.md).

# 表达式

* TrMenu v2 提供全新的表达式写法，简单易懂
* 暂时不支持自定义添加
* 参数通常由 . 分开

## 示例

```yaml
# 同时拥有权限 test 和 等级 >= 10
hasPerm.test and hasLevel.10
```

## 连词

* and = &&
  * "与"，需要相连的两部分均返回 true 时，表达式才返回 true
* or = ||
  * "或者"，需相连两部分任意一部分返回 true 时，表达式即返回 true
