XenoGuard 4.0 Documentation

Increment

ActionStep Reference » Programming » Number Operation » Basic » Increment 

The ActionStep Increment increases the value of a number by 1 and stores the value in Result under the Result List. The following number types are allowed: Floating Point, Signed Number, and Unsigned Number.



[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the Number Operation node.
  3. In the Basic node, select the Increment ActionStep.

Parameters:

The ActionStep has the following input parameters:


name Description
Number Type
Specifies the data type to be used for the incremented number

Allowed Context Scope
 [Fixed]
Allowed Values [Floating Point, Signed Number, Unsigned Number]
Identifier
The number to be incremented

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Results:

The ActionStep returns the following results:


name
description
Result Contains the number incremented by 1

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Warning The number type set in the ActionStep Increment determines the data type of its Result even if the variable or parameter that is set as an identifier is of a different data type.

Example 1 (Increases the value of a variable by 1):

This example increases the value of the local variable, Count, that uses the data type, Unsigned Number. The result of the incremented variable is then output via the Message Box.

See other Basic operations:

Add
Subtract
Multiplicate
Divide
Modulo
Power
Root
Decrement
Random