Jump to content

Template:ForeachLoop

From Parasol
Revision as of 19:39, 3 November 2023 by Sebastian (talk | contribs) (Created page with "{{#if: {{{1|}}} | <!-- Check if the input parameter is not empty --> {{#explode: {{{1}}} |, |values}} <!-- Split the input parameter by commas and assign to a named variable 'values' --> {{#foreach: values |value| <!-- Loop through the 'values' variable --> * Item: {{{value}}} }} }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#if: |

   {{#explode: {{{1}}} |, |values}} 
   {{#foreach: values |value| 
       * Item: {{{value}}}
   }}

}}