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

Matrix and if do not work together #619

Open
ChrisWRWX opened this issue Nov 6, 2024 · 0 comments
Open

Matrix and if do not work together #619

ChrisWRWX opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ChrisWRWX
Copy link
Contributor

Due to the delayed interpolation of variables by if, and matrix overwriting the original variables, matrix with an if does not work.

Below example should produce 1 sheet depending on the variable switch, but does not.

read:
- test:
    rows: 5
    values:
        header: value

write:
- matrix:
    variables:
      value: [a]
    write:
        - memory:
            if: ${switch} == '1'
            id: test_matrix_write_if_${value}1
        - memory:
            if: ${switch} == '2'
            id: test_matrix_write_if_${value}1
@ChrisWRWX ChrisWRWX added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant