> For the complete documentation index, see [llms.txt](https://zypec.gitbook.io/particles/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zypec.gitbook.io/particles/effects/creating-effect/script-types/variable-cycle.md).

# Variable Cycle

This page was last updated for version v1.2.0

## Format

`variable-cycle [args]` or `var-c [args]`

## Description

* It will cycle the variable value from min value to max value by step value&#x20;
* When the variable's value reaches the max value, it will cycle backward, and so on

## Arguments

<table data-card-size="large" data-view="cards"><thead><tr><th>Arg</th><th>Description</th><th>Format</th><th>Example(s)</th><th>Default Value</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>variable</td><td>variable name</td><td><code>variable=&#x3C;VARIABLE></code></td><td><code>variable=x</code>, <code>variable=y</code></td><td>*</td><td>true</td></tr><tr><td>step</td><td>step value</td><td><code>step=&#x3C;DOUBLE></code></td><td><code>step=0.1</code>, <code>step={step}</code></td><td>*</td><td>true</td></tr><tr><td>min</td><td>min value</td><td><code>min=&#x3C;DOUBLE></code></td><td><code>min=0</code>, <code>min={min}</code></td><td>*</td><td>true</td></tr><tr><td>max</td><td>max value</td><td><code>max=&#x3C;DOUBLE></code></td><td><code>max=10</code>, <code>max={max}</code></td><td>*</td><td>true</td></tr><tr><td>operator</td><td>operator name</td><td><code>operator=&#x3C;ADD/MULTIPLY></code></td><td><code>operator=add</code>, <code>operator=multiply</code></td><td>add</td><td>false</td></tr></tbody></table>

## Examples

1. `variable-cycle [variable=radius,step={step},min=0.25,max=1.75]`
2. `var-c [variable=x,step=0.1,min={min},max={max}]`

*Operator argument is not working for now.*
