Every time the Switch is touched, a positive constant will be added or subtracted to the current value of the specified variable.
Add the below variable(s).
| [Name] | [Data Type] |
Var1 |
[WORD] |
Drag and drop the following objects from the [Tool Chest] to the screen.
| Tab | Sub Tab | Property | Value | |
| [Function] | [Touch] | [Operation] | [Type] | [Word] |
| [Operation] | [Add] | |||
| [Source] | 1 | |||
| [Destination] | [Variable]
[Name]: Var1 |
|||
| Tab | Sub Tab | Property | Value | |
| [Function] | [Touch] | [Operation] | [Type] | [Word] |
| [Operation] | [Subtract] | |||
| [Source] | 1 | |||
| [Destination] | [Variable]
[Name]: Var1 |
|||