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

A confd variable issue #862

Open
jikui opened this issue Oct 14, 2022 · 0 comments
Open

A confd variable issue #862

jikui opened this issue Oct 14, 2022 · 0 comments

Comments

@jikui
Copy link

jikui commented Oct 14, 2022

With the following tmpl codes, I intended to have the {{$test}} variable is "abcabc" at the line 6. While the result is "abc" which means the changes in {{$if}} block doesn't take effect. How could I achieve this target? What's more, the value of $test is abcabc at line 4.

Thanks

  1. {{$test := "abc" -}}
  2. {{if eq $test "abc" -}}
  3. {{$test := printf "%s%s" $test $test}}
  4. {{$test}}
  5. {{end}}
  6. {{$test}}
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

1 participant