• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • 0.10.4 /
      • Statements /
      • Expression Statement
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

      • Overview

      • Compiler Setup

    • Variables

      • Overview

      • String Type

      • Number Type

      • Boolean Type

      • Void Type

      • Null Type

      • Undefined Type

      • Array Type

      • Overview

      • Arithmetic Expression

      • Assignment Expression

      • Conditional Expressions

      • Logical Expressions

      • Relational Expressions

      • Convert Or Cast Expression

      • Function Call Expression

      • Overview

      • Expression Statement

      • If Statement

      • While Loop

      • Do-While Loop

      • For Loop

      • Compound Statement

      • Jump Statement

    • Functions

    • Comments

    • Built-in Functions

      • 0.10.4 /
      • Statements /
      • Expression Statement
    • 0.10.4 /
    • Statements /
    • Expression Statement

    Edit page

    Expression Statement

    An expression statement is a simple expression that ends in a semicolon (;) and evaluates one or more expressions, without the involvement of any other statements.

    Syntax

    EXPRESSION;

    Examples

    Common examples of expression statements are with increment or decrement expressions ( val++/val--) that simply add or subtract 1 to/from a value. These often do not require any other expressions, and can simply be used as a whole statement, like this:

    // Defining a variable
    var increase_this: num = 4;
    increase_this++; // Expression statement -> 5
    increase_this--; // Expression statement -> 4
  • Developed at:

    • Releases
    • GitHub
    • Security
    • Issue Tracker
    • License
  • Copyright © 2021-2025 Luna Klatzer, 2024-2025 Lorenz Holzbauer & Fabian Baitura.
    Kipper is licensed under the GPL-3.0-or-later license.