Toggle
- Last UpdatedOct 29, 2026
- 1 minute read
Returns the toggled value from the contents of numValue tag.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
Toggle |
Logical |
Synchronous |
Yes |
Supported |
Supported |
Supported |
Supported |
Supported |
Syntax
Toggle( numValue )
numValue
Boolean tag containing the value to be toggled.
Returned value
Numerical result (0 or 1) of the value to be toggled.
Notes
This function does not actually change the value of the tag, but it can be used in a command or operation that does.
Examples
|
Tag Name |
Expression |
|---|---|
|
Tag |
Toggle( MyBoolTag ) // Returned value = 1 if MyBoolTag value equals 0, or 0 if MyBoolTag value equals 1 |
|
Tag |
Toggle( numValue ) // Returned value = toggled value of the number in the numValue tag |