-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to get index in for loop? #148
Comments
You can use
as a workaround |
your amazing! thank you so much.
…On Fri, Sep 4, 2020 at 11:45 AM Sebastian Krüger ***@***.***> wrote:
You can use
+++EXEC
let i = 0;
+++
+++FOR issue IN $component.issues+++
// normal Word
+++=i+++
+++EXEC i=i+1 +++
+++END FOR $component+++
as a workaround
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#148 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ3QWM2JZEAIRPEYQEZ53HTSEEYU3ANCNFSM4QY6N3DA>
.
--
<https://mikesmobile.com/>
Visit us at mikesmobile.com <https://mikesmobile.com/>
Call Us Toll Free
(800) 992-9938
* [image: test]
<https://www.facebook.com/MikesMobileScreenAndChimneyService> *
<https://www.youtube.com/channel/UCm9zVDyFkzYydZxzjHMOUdQ>
|
Thanks :D |
Just a heads up that As for the conditional page break use case though just having the inner-most index is probably sufficient; I solved this like so #283 (comment). |
Thanks for taking the time to answer these older issues @davidjb , really appreciated. |
Hello love your pluggin,
I have {FOR issue IN $component.issues} and would love to also be able to use the index in this. have tried
{FOR issue, index IN $component.issues}
and
{FOR (issue, index) IN $component.issues} {var count=1}
Any help would be much appreciated. basically looking to add page break only at the end of this for loop.
The text was updated successfully, but these errors were encountered: