How to apply arithmetic operations on variables defined in a template #2125
-
same can not work |
Beta Was this translation helpful? Give feedback.
Answered by
forgedhallpass
Jun 7, 2022
Replies: 1 comment 1 reply
-
By default variables defined, under the If you would like to transform a specific variable to a number, you can use the variables:
xxx: 22
...
dsl:
- print_debug(xxx+'a') # = 22a
- print_debug(to_number(xxx)*2) # = 44 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
forgedhallpass
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default variables defined, under the
variables
attribute are considered strings.If you would like to transform a specific variable to a number, you can use the
to_number
DSL function.