diff --git a/site/content/tutorial/04-logic/03-else-if-blocks/text.md b/site/content/tutorial/04-logic/03-else-if-blocks/text.md index 18faeacfe6..752c430d21 100644 --- a/site/content/tutorial/04-logic/03-else-if-blocks/text.md +++ b/site/content/tutorial/04-logic/03-else-if-blocks/text.md @@ -12,4 +12,24 @@ Multiple conditions can be 'chained' together with `else if`: {:else}

{x} is between 5 and 10

{/if} -``` \ No newline at end of file +``` + +Also, you can add some increment function to variable `x` so it will dynamically change the condition output. + +Add the `Add number` button with event function `incrementNumber`: + +```html + +``` +Change variable `x` to increment itself inside the function `incrementNumber`: + +```js +function incrementNumber() { + x += 1; +}; +``` + +Voila! Now you can see the condition output changes as `Add number` constantly clicked. +