Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created October 9, 2013 13:28
Show Gist options
  • Save mneuhaus/6901275 to your computer and use it in GitHub Desktop.
Save mneuhaus/6901275 to your computer and use it in GitHub Desktop.
<f:for each="{results}" as="result">
{result.foo}
<f:else>No results found</f:else>
</f:for>
vs
<f:if condition="{results}">
<f:then>
No results found
</f:then>
<f:else>
<f:for each="{results}" as="result">
{result.foo}
</f:for>
</f:else>
</f:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment