# Cycle

Grammar — Cycle var from inMin through inMax
FlagsOperator | Action

Increments an integer variable by 1, but keeps it within a given range. If this increment causes the variable to exceed the Max value, the variable is reset to the Min value.

# Arguments

  • anyvariable — Value
  • int — Min
  • int — Max

Returns — void

if (#PARAM(var) >= #PARAM(inMax)) {
    #PARAM(var) = #PARAM(inMin);
}
else {
    #PARAM(var) = #PARAM(var) + 1;
}

Category: Math / Arithmetic

# Examples

— None found —