Introduction

Nex is a versatile language designed to simplify coding for a variety of applications. Below will show you how to use the language to its fullest.

Syntax

// Define a variable
set x = 10

Examples

// Basic Hello World In 2 Ways
start nex main {
    helloWorld // run the script
}
start nex helloWorld {
    say "Hello, world!" // Say Hello, world!
}
// OR
start nex main {
    helloWorld // Run the script
}
start nex helloWorld {
    set string = "Hello, world!" // set the string
    say "${string}" // Say the string
}

Standard Functions

List of Nex standard functions:

Basic Output Functions

Variable Functions

Network Functions

Utility Functions

List of Nex utility functions:

Date and Time Functions

Math Functions

String Functions

Color Functions

File Functions

Miscellaneous Functions

Packages

Packages can be installed by simply running the installer and entering the name of the desired package. To create a package, follow these steps:

Creating a Package

  1. Create a folder within nex_packages with your desired folder name.
  2. Create main.nex and PACKAGEINFO files within that folder.
  3. Define the nexes you want within your main.nex file.
  4. Fill out the PACKAGEINFO file with the following structure:
packageinfo: {
    name: 'packagename';
    description: 'packagedescription';
    author: 'yournameoralias';
}

FAQ

Find answers to common questions about Nex.