kOS Logo
1.4.0.0
  • Home
  • Table of Contents
  • Downloads and Links
  • Tutorials
  • Community Example Library
  • General
  • Language
    • General Features
    • Language Syntax
    • Flow Control
    • Variables
    • User Functions
    • Anonymous User Functions
    • Delegates (function references)
    • Advanced topics
    • Kinds of Delegate (no suffixes)
  • Mathematics
  • Commands
  • Structures
  • Addons
  • Contribute
  • Getting Help
  • Changes
  • About
kOS
  • »
  • The KerboScript Language
  • View page source

The KerboScript Language¶

  • General Features
    • Case Insensitivity
    • Expressions
    • Short-circuiting booleans
    • Late Typing
    • Lazy Globals (variable declarations optional)
    • User Functions
    • Structures
    • Triggers
  • Language Syntax
    • General Rules
    • Suffixes
    • Numbers (scalars)
    • Braces (statement blocks)
    • Functions (built-in)
    • Suffixes as Functions (Methods)
    • Suffixes as Lexicon keys
    • User Functions
    • Built-In Special Variable Names
    • What does not exist (yet?)
  • Flow Control
    • BREAK
    • IF / ELSE
    • CHOOSE (Ternary operator)
    • LOCK
    • UNLOCK
    • UNTIL loop
    • FOR loop
    • FROM loop
    • WAIT
    • Boolean Operators
    • DECLARE FUNCTION
    • RETURN
    • WHEN / THEN statements, and ON statements
    • PRESERVE
  • Variables
    • DECLARE .. TO/IS
    • DECLARE PARAMETER
    • SET
    • UNSET
    • DEFINED
    • LOCK
    • TOGGLE
    • ON
    • OFF
    • Clobbering Built-in names:
    • Scoping terms
    • Scoping syntax
  • User Functions
    • Help for the new user - What is a Function?
    • DECLARE FUNCTION
    • Using RUN ONCE or RUNONCEPATH
    • DECLARE PARAMETER
    • Calling a function
    • Optional Parameters (parameter defaults)
    • LOCAL .. TO
    • RETURN
    • Passing by value
    • Nesting functions inside functions
    • Recursion
    • Anonymous functions
    • User Function Gotchas
  • Anonymous User Functions
    • Overview
    • Syntax
    • Passing in to other functions
    • Lexicon of functions
  • Delegates (function references)
    • Overview
    • Why?
    • Anonymous functions
    • lib_enum in KSLib
  • Advanced topics
    • Can’t call dead delegates
    • Pre-binding arguments with :bind
    • Closures
  • Kinds of Delegate (no suffixes)
Previous Next

© Copyright 2013-2021, Developed and maintained by kOS Team, Originally By Nivekk.

Built with Sphinx using a theme provided by Read the Docs.