Skip to content

Instantly share code, notes, and snippets.

@rabehasy
Created August 20, 2019 09:10
Show Gist options
  • Save rabehasy/5424f02a83552e5a92f6d5c1111cb03b to your computer and use it in GitHub Desktop.
Save rabehasy/5424f02a83552e5a92f6d5c1111cb03b to your computer and use it in GitHub Desktop.
<ul>
<f:for each="{news}" as="new" iteration="iterator">
<li style="{f:if(condition: '{iterator.index} > 4', then: 'display: none', else: '')}">
{new.title} - {new.date}
</li>
</f:for>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment