Environment variable
Save values in variables of the current session: set, get, increment, decrement, delete and show them. Typical use: share values between the scripts of a session.
env set var <varName> <value>
Description
To set a variable in the environment
To set a variable in the environment
Parameters
varName: The variable name - string - required
value: The value - string - required
varName: The variable name - string - required
value: The value - string - required
admin
env set var "[var1]" 15;
mentdb
15
admin
-> "[var2]" 16
mentdb
16
Used in use cases (5 recipes)
MQL developer › Request context in session and secrets
Script developer › Business types on the parameters of a service
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Variables: dynamic names, counters and their traps
Automation architect › Audit of the cron jobs
MQL developer › Request context in session and secrets
Script developer › Business types on the parameters of a service
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Variables: dynamic names, counters and their traps
Automation architect › Audit of the cron jobs
Often used with
concat_var · env del var · env exist var · env get var · env decr var · env incr var · atom get · env show
concat_var · env del var · env exist var · env get var · env decr var · env incr var · atom get · env show
concat_var <varName> <str1> <strN>
Description
Concatenate all parameters and save the result in the environment.
Concatenate all parameters and save the result in the environment.
Parameters
varName: The variable name - String - required
str1: The string - String - required
strN: The string - String - required
varName: The variable name - String - required
str1: The string - String - required
strN: The string - String - required
admin
concat_var "[var1]" "a" "r";
mentdb
1
Used in use cases (19 recipes)
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
Web application developer › Smoke test the login page over HTTP
The MQL language in depth › Variables: dynamic names, counters and their traps
Screen & UI developer (sajax) › Bootstrap page skeleton with an onload call
Automation architect › Audit of the cron jobs
and 13 more in the Use cases
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
Web application developer › Smoke test the login page over HTTP
The MQL language in depth › Variables: dynamic names, counters and their traps
Screen & UI developer (sajax) › Bootstrap page skeleton with an onload call
Automation architect › Audit of the cron jobs
and 13 more in the Use cases
Often used with
include · html close · html parse · string encode_b64 · html load_from_str · string regexp_count · string trim · env exist var
include · html close · html parse · string encode_b64 · html load_from_str · string regexp_count · string trim · env exist var
env incr var <varName> <increment>
Description
To increment a variable in the environment
To increment a variable in the environment
Parameters
varName: The variable name - string - required
increment: The increment - integer - required
varName: The variable name - string - required
increment: The increment - integer - required
admin
env incr var "[var1]" 1;
mentdb
16
admin
++ "[var1]"
mentdb
17
Used in use cases (3 recipes)
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
Automation architect › Audit of the cron jobs
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
Automation architect › Audit of the cron jobs
Often used with
concat_var · env decr var · env del var · env exist var · env get var · env set var · env show · cmdid
concat_var · env decr var · env del var · env exist var · env get var · env set var · env show · cmdid
env decr var <varName> <decrement>
Description
To decrement a variable in the environment
To decrement a variable in the environment
Parameters
varName: The variable name - string - required
decrement: The decrement - integer - required
varName: The variable name - string - required
decrement: The decrement - integer - required
admin
env decr var "[var1]" 1;
mentdb
16
admin
-- "[var1]"
mentdb
15
Used in use cases (3 recipes)
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
Automation architect › Audit of the cron jobs
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
Automation architect › Audit of the cron jobs
Often used with
concat_var · env del var · env exist var · env get var · env incr var · env set var · env show · cmdid
concat_var · env del var · env exist var · env get var · env incr var · env set var · env show · cmdid
env get var <varName>
Description
To get a variable from the environment
To get a variable from the environment
Parameters
varName: The variable name - string - required
varName: The variable name - string - required
admin
env get var "[var1]"
mentdb
15
Used in use cases (5 recipes)
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Variables: dynamic names, counters and their traps
Machine learning engineer › Customer segmentation with density clustering
Automation architect › Audit of the cron jobs
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Variables: dynamic names, counters and their traps
Machine learning engineer › Customer segmentation with density clustering
Automation architect › Audit of the cron jobs
Often used with
concat_var · env del var · env exist var · env set var · env decr var · env incr var · env show · not
concat_var · env del var · env exist var · env set var · env decr var · env incr var · env show · not
env exist var <varName>
Description
To check if a variable exists in the environment
To check if a variable exists in the environment
Parameters
varName: The variable name - string - required
varName: The variable name - string - required
admin
env exist var "[var1]"
mentdb
1
Used in use cases (9 recipes)
MQL developer › Request context in session and secrets
Execution modes › execute runs in a new environment
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Null, empty and blank fields of an API payload
Screen & UI developer (sajax) › Sales dashboard: KPI cards, bar chart, gauge and sparkline
Automation architect › Audit of the cron jobs
and 3 more in the Use cases
MQL developer › Request context in session and secrets
Execution modes › execute runs in a new environment
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Null, empty and blank fields of an API payload
Screen & UI developer (sajax) › Sales dashboard: KPI cards, bar chart, gauge and sparkline
Automation architect › Audit of the cron jobs
and 3 more in the Use cases
Often used with
concat_var · env del var · env get var · env set var · atom get · atom size · env decr var · env incr var
concat_var · env del var · env get var · env set var · atom get · atom size · env decr var · env incr var
env del var <varName>
Description
To delete a variable from the environment
To delete a variable from the environment
Parameters
varName: The variable name - string - required
varName: The variable name - string - required
admin
env del var "[var1]";
mentdb
Variable deleted with successful.
Used in use cases (5 recipes)
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Variables: dynamic names, counters and their traps
Automation architect › Audit of the cron jobs
The MQL language in depth › Variable scope: execute, call and include compared
MQL developer › Request context in session and secrets
Configuration & connections › Session variables: counters, accumulators and cleanup
The MQL language in depth › Variables: dynamic names, counters and their traps
Automation architect › Audit of the cron jobs
The MQL language in depth › Variable scope: execute, call and include compared
Often used with
env exist var · concat_var · env get var · env set var · env decr var · env incr var · env show · not
env exist var · concat_var · env get var · env set var · env decr var · env incr var · env show · not
env show
Description
To show the environment variables
To show the environment variables
admin
env show
mentdb
{ "[err]": "1: your messffage ...", "[var2]": "16", "[i]": "45", "[ERROR]": "1: your messffage ..." }
Used in use cases (3 recipes)
MQL developer › Request context in session and secrets
Execution modes › execute runs in a new environment
Configuration & connections › Session variables: counters, accumulators and cleanup
MQL developer › Request context in session and secrets
Execution modes › execute runs in a new environment
Configuration & connections › Session variables: counters, accumulators and cleanup
Often used with
env exist var · concat_var · env decr var · env del var · env get var · env incr var · env set var · cmdid
env exist var · concat_var · env decr var · env del var · env get var · env incr var · env set var · cmdid
