Getting Started
Installation
Usage
Basic Syntax
Data Types
Expressions
Variables
Conditions
Commands
Arrays
Loops
Functions
Importing
Advanced Syntax
As Cast
Builtins
Type Condition
Compiler Flags
Standard Library
Array
Date
Environment
FileSystem
HTTP
Math
Text
Amber by Example
ShellCheck tester
Ubuntu Updater
Bot Detector
LSP Installer
Type Condition
Sometimes when building generic functions one could find it very convenient to additionally validate if passed value is one of the data types that are supported.
fun getObject(value) {
if {
value is Text: getByName(value)
value is Num: getById(value)
}
}
Getting Started
Installation
Usage
Basic Syntax
Data Types
Expressions
Variables
Conditions
Commands
Arrays
Loops
Functions
Importing
Advanced Syntax
As Cast
Builtins
Type Condition
Compiler Flags
Standard Library
Array
Date
Environment
FileSystem
HTTP
Math
Text
Amber by Example
ShellCheck tester
Ubuntu Updater
Bot Detector
LSP Installer