AutoIt+
  • Overview
  • Getting started
  • The language
    • Basic
    • Grammar
      • Expressions
      • Statements
      • Declarations
    • Operators
    • Variables
    • Types & values
      • Null
      • Booleans
      • Numbers
      • Strings
      • Functions
      • Classes
      • Pointers
    • Control flow
      • If statement
      • For loop
      • While loop
      • Break & continue
      • Error handling
    • Collections
      • Array
        • APIs
        • Implementation
      • Map
        • APIs
        • Implementation
    • Modules
    • Exceptions
  • Built-in modules
    • C
      • APIs
      • Constants
    • Math
      • APIs
      • Constants
    • Task
      • Types
      • APIs
    • Global
  • The aup
    • Compiler
    • Runtime
    • Options
Powered by GitBook
On this page

Was this helpful?

  1. The language
  2. Types & values

Null

Null is a special value which presents none or nothing.

puts null    // null

A variable has no initializer will be assigned by null.

var myVar
puts myVar == null

A function has no return or returns none, will return null.

func fnA() {
    return
}

func fnB() {
}

puts fnA() == null    // true
puts fnB() == null    // true

PreviousTypes & valuesNextBooleans

Last updated 3 years ago

Was this helpful?