> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/val.zh.md).

# Val

\<evalcmd> Val && 变量 && 命名参数的值。 && varname && 字符串 && 参数的名称。 \</evalcmd>

返回变量的值； *varname* 作为带引号的字符串提供。对于包含会使求值器的解析器混淆的字符的变量（例如，如果名称以数字开头），这非常有用。

//<Example://>

```
flag = Val("35mmfocallength"); // 获取 35mmfocallength 字段的值
```
