Builtins

 Some functions are already built in the language. They exists both in C++ and Php and are usable directly in Scriptol.
These functions are common to PHP, C, C++, and Scriptol. The Php name is given in the list if it differs of the Scriptol one.

number abs(number) Returns the absolute value of a number.
void assert(boolean) Tests a condition, if false, terminate the program.
number ceil(number) Returns the rounded up integer.
text chr(integer) Returns the character for an ASCII value. Ex: chr(32) return a blank space.
boolean chdir(text) Changes the current directory. Returns false if unsuccessful.
void closedir(dir) Close the directory.
void die(text message) Displays a message and exits the program.
number doubleval(scalaire) Converts a number or text into number (double).
void exit() Exits the program.
number floor(number) Returns the rounded down integer.
int intval(text t) Converts a text to an integer.
boolean is_dir(text) Returns true if the argument is a directory.
boolean is_file(text) Returns true if the argument is a file.
scalar min(scalar, scalar) Returns the lowest of two arguments.
scalar max(scalar, scalar) Returns the greatest of two arguments.
boolean mkdir(text) Creates a sub-directory. Return true if created.
natural naturalval(scalaire) Converts a number or text into natural.
int ord(text) Gets the ASCII value of a character.
dir opendir(text) Opens a directory the path in argument.
constant char *plural(int x) Returns the plural "s" if x > 0.
number pow(number, number) Return the n power of a number.
int rand() Returns a random number.
void randomize() Starts a sequence of random numbers.
array range(int x, int y) Generates an array of integers from x to y.
text readdir(dir) Return the next file in the dir in argument.
boolean rename(text, text) Renames a file. Returns false if impossible.
boolean rmdir(text) Deletes a sub-directory. Returns true if deleted.
number sqrt(number) Returns the square of a number.
char *str(number) Converts a number into a string.
text strval(number) Converts a number into a text. (See: strval)
void swap(dyn, dyn) Exchanges the content of two ariables.
void system(text command) Pass a command to the operating system.
boolean unlink(text) Deletes a file. Returns true if deleted.
text pad(text t, len l [, text c ] [, int o]]) Pad a text with blank space or the given string of chars. t: text to pad. l: length to reach. c: text to add, default blank spaces. o: options STR_PAD_LEFT, STR_PAD_BOTH, default at right. (See: str_pad)
Scalar is an integer, boolean, text, natural, or real.
Char * is an external type not used ouside "extern" blocks.