Skip to content
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

[Nice To Have] Be able to use a counter inside and outside a sequence #36

Open
fbeltrao opened this issue Sep 25, 2021 · 1 comment
Open

Comments

@fbeltrao
Copy link
Collaborator

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Define the following variables:
counter_1, counter_2, counter_3: counters
seq1: [ counter_1, counter_2, counter_3 ]
seq2: [ counter_2, counter_1 ]

Define the template:
{ v1: seq_1, v2: seq_2, v3: counter_3 }

The value of v3 will be "$.counter_3" as we don't support using a counter inside and outside a sequence.

Expected/desired behavior

Same variable can be used inside and outside a sequence.

@gukoff
Copy link
Collaborator

gukoff commented Sep 28, 2021

Maybe revert Counter behavior, and create a new variable type like ResettingCounter that resets when not used on the iteration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants