--- title: results - any、unknown、none 与多个结果 summary: any 表示由具体约定决定的值;unknown 表示尚未确认约定。它们都不是 Lua type() 的返回类型。none 和 C void 没有直接返回值,但仍可能有副作用和输出参数。 section: reference kind: guide status: reference updated: 2026-10-26 tags: ["API","X4"] sources: ["https://wiki.egosoft.com/X4%20Foundations%20Wiki/Modding%20Support/","https://www.lua.org/manual/5.1/manual.html","https://luajit.org/ext_ffi_api.html"] --- ## 含义 any 表示由具体约定决定的值;unknown 表示尚未确认约定。它们都不是 Lua type() 的返回类型。none 和 C void 没有直接返回值,但仍可能有副作用和输出参数。 ## 示例 ```lua local ok, result = pcall(function() return 7 end) -- boolean, then the function results on success. ``` **运行效果:** 结果是7 这段段没有打印或写日志信息. 显示的值是示例的预期结果. ## 方法与相关调用 [API 参考](wiki:api-index).