function

extention . files . sncode

VERSIONlatest Return the length of an expression.

EXTENTION

NAME

extention - Returns the length of an expression.

SYNOPSIS

extention ("file", …)

DESCRIPTION

This function returns the extension of a file, that is the type of the file. If multiple files are specified at the beginning, it returns an array containing all the extensions.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

res={_{ extension("toto.txt"); }}. return res=txt.
res={_{ extension("toto"); }}. return res=.
res={_{ extension(); }}. return res=.
res={_{ extension("1.txt","2.a","3.xls","4"); }}. return res=["txt","a","xls",""].

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>