[made on nodejs]
like normal standard json files
{
"name" : [value]
}
{
"name" : [
"index_1": 10,
"index_2": "text127"
]
}
also can be used as pure json if writen right
{
"main": {},
"my_custom_function_name": {
"return": null
}
}
On this example you can find :
main function
empty- a
custom function
withreturn
valuenull
that isn't used on main function
to call the function
"output" : "function"
"function" : "input"
input
and output
can be null
as empty
"function_name" : {
"return": [value]
}
"main": {
"function_name" : 10
},
"function_name" : {
"return" : "$input"
}
$input is a system variable that is equal at input value/variable that was call as parameter like common myfunction(myparameter) also it can be used as direct return value or applied some changes
"main": {
"function_name" : [
"0" : 10,
"1" : 2,
"two" : 222
]
},
"function_name" : {
"return" : "$input[two]"
}
$input
can be used as list with a name index
##list of system variables:
$input
<- only usable on custom function system , outside still null
$input[name]
<- also can be used as list based on a name index
$rnd[]
<- random variable
{
"main": {
"null" : "my_custom_output_function"
},
"my_custom_output_function": {
"sys.out": {
"0": "Hello",
"1": "World"
},
"return": null
}
}
On this example you can find :
main function
with a function as equalnull
that can extend the main function without save any value as resultcustom function
that contain same return as before example and asys.out
as system.output where as based on a priority system (0 first of 1) , it send on output values
{
"main": {
"sys.var.set": [{
"id": "my_var",
"value": 10
}]
}
}
On this example you can find :
main function
withsys.var.set
as variable.set where you can create a list of variables that require aid
to define a name and optional avalue
to initialize
{
"main": {
"sys.var.set": [{
"id": "my_one_var",
"value": 10
},{
"id": "my_two_var",
"value": 222
}]
}
}
On this example you can find:
- same example before but with two variables :
my_one_var
&my_two_var
-
sys
: [out
= output systemvar
: [set
= create and define variableschange
= modify created variables ]
]
{
"main": {
"var.set": [{
"id": "my_var",
"value": 10
}]
},
"plusplus":{
"return": "$input+2"
}
}