Increment or Decrement Local Variable

BlockUtilities

Increment or decrement a numeric local variable by a value.

Inputs

VariableRequired

The local variable to modify.

Pick one of the flow's local variables.

OperationRequired

Whether to increment or decrement.

Options+ (increment)- (decrement)
ValueRequired

The amount to increment or decrement by.

Example: 1

Build a bot using blocks like Increment or Decrement Local Variable

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: increment_local_variable

Inputs

FieldInventScript nameValue
Variablevariablea local variable, e.g. count
Operationoperation"+ (increment)", "- (decrement)"
Valuevaluee.g. "1"

Example InventScript

var count = 0

count++

More utilities blocks