Skip to content

Understanding of function variable #9

Answered by Kyrela
philippe-levan asked this question in Q&A
Discussion options

You must be logged in to vote

TL;DR Function variables are text variables. They are useful if you want to allow usage of programming-like syntax in order to add multiple variables interpretations possibilities. But, Lotemplate doesn't interpret them in a different way.

Note that this answer only speaks about text variables, but the same exact text can be used to speak about table variables (as they also support this syntax)


What are Function Variables?

Function variables are just regular text variables, and operate in the same way as text variables - in terms of code and usage. The only thing that really differentiates them from regular text variables is their syntax.

  • $my_var - regular variable
  • $my_func($my_var) - f…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@philippe-levan
Comment options

@Kyrela
Comment options

Answer selected by Kyrela
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #8 on March 02, 2023 08:28.