diff --git a/site/content/examples/03-logic/04-keyed-each-blocks/Thing.svelte b/site/content/examples/03-logic/04-keyed-each-blocks/Thing.svelte index 4e86d32109..1023b997aa 100644 --- a/site/content/examples/03-logic/04-keyed-each-blocks/Thing.svelte +++ b/site/content/examples/03-logic/04-keyed-each-blocks/Thing.svelte @@ -6,4 +6,12 @@ const valueAtStart = value; -
{valueAtStart} / {value}
\ No newline at end of file +{#if valueAtStart === value} ++ {valueAtStart} / {value} +
+{:else} ++ {valueAtStart} / {value} => bye bye last element...! +
+{/if} diff --git a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte index 4e86d32109..1023b997aa 100644 --- a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte +++ b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte @@ -6,4 +6,12 @@ const valueAtStart = value; -{valueAtStart} / {value}
\ No newline at end of file +{#if valueAtStart === value} ++ {valueAtStart} / {value} +
+{:else} ++ {valueAtStart} / {value} => bye bye last element...! +
+{/if} diff --git a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte index 4e86d32109..1023b997aa 100644 --- a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte +++ b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte @@ -6,4 +6,12 @@ const valueAtStart = value; -{valueAtStart} / {value}
\ No newline at end of file +{#if valueAtStart === value} ++ {valueAtStart} / {value} +
+{:else} ++ {valueAtStart} / {value} => bye bye last element...! +
+{/if}