variables

Assign String or Integer value to variable name.

Volatile RAM : /dev/shm/var/

Non Volatile RAM : /RAM/VARSAVE/


var *varName = *varValueType

*varValueType : accepted String(without space) or Integer

Example:

var yourvar = Hello

var yourvar = 1024


Override *Var by other *var:

Example: var myvar = 100 < new_var


var_if *VAR *operator *value call *sub *option

*VAR = variable name

*operator : < > != =

*value : *VAR or integer/string value

*sub : sgneepBox script subscript

*option : __RAM__ [ enable to read *RAMvar ]


Simple Operation Accepted


var_save *var

copy *VAR in *RAMvar folder


var_save *var

copy *RAMvar in *VAR Folder


var_add *var *var

*var = integer value


var_sub *var *var

*var = integer value


var_mul *var *var

*var = integer value


var_div *var *var

*var = integer value

Example

# declare integer var:
var voltage = 32
var alarm = ON
var_if alarm != OFF call YourSubScript
Powered by Sgneep.com