CraftScript
  • CraftScript
  • Syntax
    • Kinds
    • Keywords
    • Language Features
  • Tutorials
    • Getting Started
      • Assurance Keywords
      • Value Keywords
      • Condition Keywords
      • Other Keywords
    • Using the Language
      • The Do Block
    • Importing External Scripts
    • Adding CraftScript to a Server
    • Environments and Contexts
  • Libraries
    • Reflection
    • Debug
    • Math
    • Parser
    • Global
Powered by GitBook
On this page
  1. Syntax

Keywords

Control keywords for the language.

Word
Use

assert

Make certain a value is true.

require

Make certain variables are present.

import

Obtains the output of an external program.

if

Run a statement on a condition.

while

Continually run a statement on a condition.

for

Run a statement for every element in a collection.

do

Runs code in the context of an object.

run

Run an executable object.

struct

Create a data structure with a fixed set of properties.

function

Creates an executable object to run a statement.

syntax

Defines new syntax available in the current script.

null

The empty value.

false

The false value.

true

The true value.

PreviousKindsNextLanguage Features

Last updated 1 year ago