# var

    .var name:{String} value:{Dynamic} -> Void

Content copied to clipboard

Defines a new variable or overwrites an existing one.

    .var {myvar} {0}

Content copied to clipboard

Variables can be referenced just like functions:

    The variable has value .myvar

Content copied to clipboard

Variables can be reassigned in two ways:

- By calling the variable as a function with one argument, which is the new value to assign:

        .myvar {42}

  Content copied to clipboard

- By calling this variable function again:

        .var {myvar} {42}

  Content copied to clipboard

#### Parameters

name

name of the variable

value

value to assign

#### Wiki page

variables