23 Articles in this category
-
DarkLight
utility
23 Articles in this category
-
DarkLight
Boolean
Converts the given value to a true/false. This conversion is equivalent to JavaScript !!value .
Function signature
BOOLEAN(value: String|Number|Boolean) => Boolean
Examples
Updated on : 06 Jun 2022
Default_file_extension
Returns the default file extension associated with the given MIME type.
Function signature
DEFAULT_FILE_EXTENSION(mime-type: String) => String
Examples
Updated on : 18 May 2022
Encode_for_url
URL encodes the given text, escaping any special characters. Returns the encoded text.
Function signature
ENCODE_FOR_URL(value: String) => String
Examples
Updated on : 18 May 2022
Encode_JSON
Converts a given JSON-format input (number, true/false, list, object) into a text.
Function signature
ENCODE_JSON(value: String|Number|Boolean|Object|Array, spaces: Number) => String
Examples
Updated on : 18 May 2022
Filename_is_image
Returns true if the given text is or has a file extension that belongs to a web-compatible image MIME type.
Function signature
FILENAME_IS_IMAGE(fileextension: String) => Boolean
Examples
Updated on : 18 May 2022
IF
If the first parameter evaluates to true , returns the second parameter. Otherwise, returns the third parameter.
Function signature
IF(condition: Boolean, truevalue: , falsevalue: ) => String
Examples
Updated on : 18 May 2022
IS_EMAIL
Returns true if the given text is a valid email address, otherwise returns false .
Function signature
IS_EMAIL(value: String) => Boolean
Examples
Updated on : 18 May 2022
IS_NULLY
Returns true if the given value is either null or undefined . For any other value, returns false .
Function signature
IS_NULLY(value: Json) => Boolean
Examples
Updated on : 18 May 2022
IS_Undefined
Returns true if the parameter is undefined value. For all other values, including null , this returns false .
Function signature
IS_UNDEFINED(value: Json) => Boolean
Examples
Updated on : 18 May 2022
Mime_type_is_image
Returns true if the given MIME type belongs to a web-safe image format, and false otherwise.
Function signature
MIME_TYPE_IS_IMAGE(mimetype: String) => Boolean
Examples
Updated on : 18 May 2022
NOT
Returns true if the given parameter is false , otherwise returns false . Equivalent to the ! operator.
Function signature
NOT(value: Boolean) => Boolean
Examples
Updated on : 18 May 2022
Number
Converts the value to a number, if it is not already a number. Numeric texts are parsed. Any other values, and invalid texts, result in null value.
Function signature
NUMBER(value: String|Number) => Number
Examples
Updated on : 18 May 2022
Numeric_base
Converts the given number into a text representation in another base.
Function signature
NUMERIC_BASE(number: Number, base: Number) => String
Examples
Updated on : 18 May 2022