Instalink Scripting Documentation

Dates

Current date
Current timestamp
Day of Month
Day of Week (number)
Day of Week (text)
Month (number)
Months ago
Month (text)
Truncate date to day
Truncate date to hour
Truncate date to minute
Truncate date to month
Truncate date to year
Year
Years ago
Adjust by Timezone

Encoding

Base 64 Decode
CSV Decode
JSON Decode
URI Decode
X12 Decode
Base 64 Encode
CSV Encode
JSON Encode
URI Encode
X12 Encode

Lists

Aggregate Array
List Append
List Contains Value
Remove Index From List
Removes Items From Array In Other Arrays
Each Item in List as List
Filter List by Matches
First Item in List
Flatten List
Flatten List Recursively
Get Item In List At Index
List Get Index
Aggregate Array By Group
Group Array By Value
All But Last Item in List
Get Common Items In Arrays
Join List Into Text
Last Item in List
Count of Items in List
Filter List by Non-Matches
Pluck Values from List Items
Reverse List
Random Item in List
Set Item In List At Index
Sort List
List Sort By Key
Extract Part of Array
All But First Item in List
Array To Map
Transpose List of Lists
Combine Two Arrays Without Duplicates
Filter List: Unique
Filter List: Unique By Key

Logic

And
Equal to
Exists
Greater Than
Greater Than or Equal
Less Than
Less Than or Equal
Match
Not equal to
Or
Xor

Maps

Map Without Entry
Map Get
Map Has Key
Map Keys
Merge Maps
Map Pairs
Map With Entry
Map Size
Map Values

Math

Absolute value
Add
Round up
Cube Root
Divide
Divide (whole number)
Round down
Multiply
Negate
Exponent
Random Number
Random Whole Number
Remainder
Round number
Square Root
Subtract
Round towards zero

Other

Lookup

Text

Append Text
Capitalize words
Concatenate Text
Text Contains
Create Hash
Create HMAC Signature
Text length
Split Text Into Lines
Lower case
Prepend Text
Replace Text
Search Text
Text split
Sub Text
Trim text
Left trim text
Right trim text
Upper case
Split Text Into Words

Type Conversions

List
Boolean
Date
Date to String
Number
Whole Number
Map
As Is
Number to Fixed Decimal String
Text
Timestamp

Less Than | LESS_THAN

Syntax

LESS_THAN( [input], [other] )

Parameters

input
Any data may be used as the input.

other
Any data may be used as the other.

Return Value

TRUE if the VALUE is less than the OTHER. FALSE, otherwise.

Description

Determine if a value is less than another. Comparison is done structurally. If values of different types are provided, the comparison is done by type with the following precedence (from lowest to highest):
  1. UNDEFINED
  2. NULL
  3. BOOLEAN
  4. NUMBER
  5. STRING
  6. DATE
  7. ARRAY / LIST
  8. OBJECT / MAP
UNDEFINED values are always considered equal. NULL values are also always considered equal. FALSE is less than TRUE. NUMBER values are compared as one would expect. STRING values are compared alphanumerically. DATE values are compared normally. ARRAY values are compared item by item where the first non-equal value is the result. MAP value are currently always considered equal, but this is likely to change in a future update, and should not be relied upon.

Examples

LESS_THAN(1, 2) # returns TRUE
LESS_THAN(2, 1) # returns FALSE
LESS_THAN(1, 1) # returns FALSE
LESS_THAN("abc", "abd") # returns TRUE
LESS_THAN([1, 2, 3], [1, 2, 3]) # returns FALSE
LESS_THAN([1, 2, 3], [1, 2, 4]) # returns TRUE
LESS_THAN([1, 2, 3], [1, 2]) # returns FALSE
LESS_THAN([1, 2, 3], [1, 3]) # returns TRUE
LESS_THAN(NULL, NULL) # returns FALSE