Innov-AI     Services     Supporters     Contact     About    
Environment variable

You can save data into variables in your session.

env set varconcat_varenv incr varenv decr varenv get varenv exist varenv del varenv show

env set var <varName> <value>


Description

    To set a variable into the environment

Parameters

    varName:   The variable name - string - required
    value:   The value - string - required
admin
env set var "[var1]" 15;
mentdb
15
admin
-> "[var2]" 16
mentdb
16

concat_var <varName> <str1> <strN>


Description

    Concat all parameters and save the result into the environment.

Parameters

    varName:   The variable name - String - required
    str1:   The string - String - required
    strN:   The string - String - required
admin
concat_var "[var1]" "a" "r";
mentdb
1

env incr var <varName> <increment>


Description

    To increment a variable into the environment

Parameters

    varName:   The variable name - string - required
    increment:   The increment - integer - required
admin
env incr var "[var1]" 1;
mentdb
16
admin
++ "[var1]"
mentdb
17

env decr var <varName> <decrement>


Description

    To decrement a variable into the environment

Parameters

    varName:   The variable name - string - required
    decrement:   The decrement - integer - required
admin
env decr var "[var1]" 1;
mentdb
16
admin
-- "[var1]"
mentdb
15

env get var <varName>


Description

    To get a variable from into the environment

Parameters

    varName:   The variable name - string - required
admin
env get var "[var1]"
mentdb
15

env exist var <varName>


Description

    To check if a variable exist into the environment

Parameters

    varName:   The variable name - string - required
admin
env exist var "[var1]"
mentdb
1

env del var <varName>


Description

    To delete a variable from the environment

Parameters

    varName:   The variable name - string - required
admin
env del var "[var1]";
mentdb
Variable deleted with successful.

env show


Description

    To show the environment variable

admin
env show
mentdb
{<br> "[err]": "1: your messffage ...",<br> "[var2]": "16",<br> "[i]": "45",<br> "[ERROR]": "1: your messffage ..."<br>}




© 2012 - 2023