Skip to content
umangenius-logo
U Man Genius docs
  • Pages
    • Welcome
      • ninext-loupe
        Ninext documentation
        • ninox-logo
          Ninext APP
        • Plugin version
          • Plugin installation
          • Update history
        • Classic version
          • Installation
            • Uninstall
          • Update history
        • Popup ninext
          • Fields and Functions
          • Debug tracer
          • 🚧 Errors
          • Finder
        • 🚧 Edit field
        • Copy, paste, duplicate & delete
        • HTML helping functions
        • Native JS
          • Clipboard sample
        • Badges
        • View field event
        • Button event
        • Schema overview
        • Make a donation to support Ninext
      • ninox-logo
        Scripting tips & tricks
        • General Information
        • Var and Let
        • Functions
        • icon picker
          If Then else
        • For and while loops
        • select, where, from, to
        • Order By (or Order)
        • create, delete, and duplicate
        • JSON in Ninox
        • Arrays in Ninox
        • Undocumented functions in Ninox
        • Manipulating Record IDs in Ninox
        • Dynamic Choice & MultiChoice

If Then else

Last edited 440 days ago by Jacques TUR.
The if statement can return two different values. It is important that these two values are of the same type; otherwise, the compiler will return an error:
if a > 10 then
"important value";
else
"low value";
end;

Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.