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

# StrCmp

\<evalcmd> StrCmp && int && 如果字符串相同，则返回 **0**；如果 *string1* 小于 *string2*，则返回 **< 0**；如果 *string1* 大于 *string2*，则返回 **> 0**。&& string1 && string && 要比较的第一个字符串。&& string2 && stirng && 要比较的第二个字符串。&& \[length] && int && 要比较的字符数。默认情况下将比较字符串的整个长度；较短的字符串将被视为小于较长的字符串。&& \[flags] && string && 可选标志为：

\| |
