The nenv class is similar to an environment variable. Just create, set the type and value, and query it
- Command Input:
v
- Command Output:
s (Type = [void int float bool string object float4])
- Command Description:
- Returns the datatype the variable is set to. If void is returned the variable is empty.
- Command Input:
v
- Command Output:
i (Value)
- Command Description:
- Returns the content of the variable if it is an int variable. If it's not an int variable, 0 is returned and an error message is printed.
- Command Input:
v
- Command Output:
f (Value)
- Command Description:
- Returns the content of the variable if it is a float variable. If it's not a float variable, 0.0 is returned and an error message is printed.
- Command Input:
v
- Command Output:
b (Value)
- Command Description:
- Returns the content of the variable if it is a bool variable. If it's not a bool, false is returned and an error message is printed.
- Command Input:
v
- Command Output:
s (Value)
- Command Description:
- Returns the content of the variable if it is a string variable. If it's not a string variable, "" is returned and an error message is printed.
- Command Input:
v
- Command Output:
o (ObjectHandle)
- Command Description:
- Returns the content of the variable as an object handle. If it's not an object handle, NULL is returned and an error message is printed.
- Command Input:
v
- Command Output:
f(X), f(Y), f(Z), f(W)
- Command Description:
- Return content as 4D vector.
- Command Input:
i (Value)
- Command Output:
v
- Command Description:
- Sets the content of the variable to the passed integer value.
- Command Input:
f (Value)
- Command Output:
v
- Command Description:
- Sets the content of the variable to the passed float value.
- Command Input:
b (Value)
- Command Output:
v
- Command Description:
- Sets the content of the variable to the passed boolean value.
- Command Input:
s (Value)
- Command Output:
v
- Command Description:
- Sets the content of the variable to the passed string.
- Command Input:
s (ObjectHandle)
- Command Output:
v
- Command Description:
- Sets the content of the variable to the passed object handle.
- Command Input:
f(X), f(Y), f(Z), f(W)
- Command Output:
v
- Command Description:
- Sets the content of the variable to a 4D vector.