> 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/isdigit.zh.md).

# IsDigit

\<evalcmd> IsDigit 且为布尔值 && 如果 *string* 仅包含数字，则为 **True**。 && string && string && 要测试的字符串。 \</evalcmd>

如果 *string* 完全由数字字符组成，则返回 **True**，否则返回 **False**。

//<范例://>

```
Output(IsDigit("12345"))
--> true

Output(IsDigit("123a5"))
--> false
```

*另请参见：*\
[isalpha](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/isalpha.zh.md)\
[islower](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/islower.zh.md)\
[ispunct](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/ispunct.zh.md)\
[isspace](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/isspace.zh.md)\
[isupper](/directory-opus/guan-fang-shou-ce/readme.zh-10/readme.zh-4/isupper.zh.md)
