NRC_SetBoolVar(int num, bool value)
Set the value of a BOOL variable
Type
int=>Set the value of a BOOL variable
| Return value | Description |
|---|---|
| 0 | The function is called successfully |
| -101 | Invalid input parameter |
| -102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
| -103 | The target object is currently in an inoperable state |
Parameter Option
| Parameter | Type | Description |
|---|---|---|
| num | int | The number of the BOOL variable, value range: 0 < num <= 100 |
| value | bool | The target value to be set |
Sample code
NRC_SetBoolVar(1,1);//Assign 1 to variable GB001