mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-02 16:45:12 -07:00
Put the initial values into a code container
It looks better and more readable this way.
This commit is contained in:
+2
-2
@@ -79,7 +79,7 @@ I am 35 and my favourite food is pizza.
|
|||||||
|
|
||||||
## increment
|
## increment
|
||||||
|
|
||||||
Creates and outputs a new number variable with initial value 0. On subsequent calls, it increases its value by one and outputs the new value.
|
Creates and outputs a new number variable with initial value `0`. On subsequent calls, it increases its value by one and outputs the new value.
|
||||||
|
|
||||||
<p class="code-label">Input</p>
|
<p class="code-label">Input</p>
|
||||||
```liquid
|
```liquid
|
||||||
@@ -122,7 +122,7 @@ In the example below, a variable named "var" is created through `assign`. The `i
|
|||||||
|
|
||||||
## decrement
|
## decrement
|
||||||
|
|
||||||
Creates and outputs a new number variable with initial value -1. On subsequent calls, it decreases its value by one and outputs the new value.
|
Creates and outputs a new number variable with initial value `-1`. On subsequent calls, it decreases its value by one and outputs the new value.
|
||||||
|
|
||||||
<p class="code-label">Input</p>
|
<p class="code-label">Input</p>
|
||||||
```liquid
|
```liquid
|
||||||
|
|||||||
Reference in New Issue
Block a user