MentDB, The digital brain.  About me Home
Back / All functions / Environment variable

You can save data into variables in your session.

env set 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

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
{
"[err]": "1: your messffage ...",
"[var2]": "16",
"[i]": "45",
"[ERROR]": "1: your messffage ..."
}




© 2012-2017 - Jimmitry Payet.