webCOMAND

Custom Functions

Custom functions can be defined in cScript, which can be called just like the regular built-in functions after they are defined.

Example

/**
 * Add two numbers (or append two strings).
 */
function sum($a, $b) {
    return $a + $b;
}