Data Type
The data types of MQL: numeric, string, null, boolean, variable, JSON, comment and error, plus the line break markers [_n_] and [_r_].
numericstringnull[_n_][_r_]variablebooleanjsoncommenterror

numeric


Description

    Numeric type

admin
123
mentdb
123
admin
+ 3 4
mentdb
7

string


Description

    String type

admin
"Hello!"
mentdb
Hello!
admin
concat "Hello " "Adam" "!"
mentdb
Hello Adam!

null


Description

    Null type

admin
null
mentdb
null
admin
is null null;
mentdb
1
Used in use cases (2 recipes)

    Machine learning engineer › Compare search algorithms on a delivery network
    Automation architect › Supplier invoices from an IMAP mailbox to the stack
Often used with

    cm get  ·  date now  ·  file dir_list  ·  json parse_array  ·  mail download imap  ·  ml h_node add_problem  ·  ml h_node close  ·  ml h_node close_problem

[_n_]


Description

    LF

admin
[_n_]
mentdb

[_r_]


Description

    CR

admin
[_r_]
mentdb

variable


Description

    Variable type

admin
-> "[var1]" 16
mentdb
16
admin
env show;
mentdb
{ "[var2]": "16" }

boolean


Description

    Boolean type

admin
true
mentdb
1
admin
false
mentdb
0

json


Description

    JSON type

admin
json load "keyId" "{}";
mentdb
1
admin
json doc "keyId";
mentdb
{}

comment


Description

    Comment type

admin
#This is a comment;
mentdb
This is a comment ...

error


Description

    Error type

admin
exception (1) ("your message ...");
mentdb
1: your message ...