Variables are managed by the VariableManager.
To create a variable:
Sybase.UnwiredPlatform.Windows.Variable.VariableManager .Instance.UserVaraibles .AddVariable("test", null);
To read a variable:
Sybase.UnwiredPlatform.Windows.Variable.VariableManager .Instance.GetVariableValue( Sybase.UnwiredPlatform.Windows.Variable.VariableType.User, "test")