# Samples

A collection of basic sample scripts.

# Mathematics

var price = 20
val discount = 2
val vat = 21

price += (price / 100 * vat) - discount

See expressions for details about expressions.

# Functions

fun: string greet(name: string) {
   val greet = 'Hello ' + name
   return greet
}

greet('Niels')
greet('Marnix')

See functions for details about functions.

Last Updated: 1/5/2021, 12:54:58 PM