devonapple
New member
Is it possible to do math in a generator using variables?
Example:
I read the documentation, and I felt there was a missed opportunity to explain more about why and how to use variables. It could also be my own knowledge gap!
Also, I figured out basic variables, but some of my var declarations break the compiler when I use them in the Results Pattern. I get an error that says:
`[ResultPattern] <error calling non-existent variable 'locationSearchedArticle' from ''>`
I'm not sure why some text-based vars like `locationScaleArticleLower` and `locationSearchedArticle` break the compiler.
Example:
- 'tableA' returns a 'value', and that value has an associated number titled 'rank'.
- 'tableB' returns 'another value' and that value has an associated number titled 'multiplier'.
- I want to say "{tableA:value} holds {tableA:rank * tableB:multiplier} containers of {tableB:another value}".
I read the documentation, and I felt there was a missed opportunity to explain more about why and how to use variables. It could also be my own knowledge gap!
Also, I figured out basic variables, but some of my var declarations break the compiler when I use them in the Results Pattern. I get an error that says:
`[ResultPattern] <error calling non-existent variable 'locationSearchedArticle' from ''>`
I'm not sure why some text-based vars like `locationScaleArticleLower` and `locationSearchedArticle` break the compiler.
Attachments
Last edited: