How do I assign different values to variables? #626
heyeruoqi
started this conversation in
Templates Showcase
Replies: 2 comments
-
<%*
let var = 20;
%> Elsewhere in file:
should do the trick. |
Beta Was this translation helpful? Give feedback.
0 replies
-
When you are using If you want to use this community Templater plugin, use the Eta templating syntax. It might take a bit to get used to, but with some tinkering I'm sure you will get it. To set a value to a variable, the example above by @AB1908 an excellent answer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to implement giving a variable such as {{id}} a different value such as 7117 or 7843 etc. It is too much trouble to enter it manually each time, can the template do this? I can prepare the values of the variables in advance to enable more complex logical operations, e.g. I can easily select these variables by means of drop down menus etc.
Beta Was this translation helpful? Give feedback.
All reactions