Ninext
HomeAboutPricingDocumentation
Sign inRequest access
文档
  • 欢迎
    • Ninext 文档
    • 脚本技巧与窍门
      • 总体说明
      • Var 与 Let
      • 函数
      • If Then else
      • for 与 while 循环
      • select、where、from、to
      • Order By(或 Order)
      • create、delete 与 duplicate
      • Ninox 中的 JSON
      • Ninox 中的数组
      • Ninox 中未记录的函数
      • 在 Ninox 中操作记录 ID
      • 动态选择与动态多选
欢迎›脚本技巧与窍门›

If Then else

if 语句可以返回两个不同的值。重要的是这两个值必须属于同一类型,否则编译器会报错:

if a > 10 then
    "important value";
else
    "low value";
end;
← 函数for 与 while 循环 →
UManGenius — the plugin that extends Ninox
AboutLegal noticeTerms of salePrivacy policy
© 2026 UManGenius. All rights reserved.v0.1.0 · 20260911.1721