81. Variable Name as Expression
[VARIABLES] 81. VARIABLE NAME AS AN EXPRESSION
Allows you to specify the variable name as an Expression in main functions dealing with variables.
Using expressions you can indicate:
• Variable name in Variable Input (Forms).
• Media Variable for the message in the Post Editor.
• Variables in Actions.
ℹ️ If you don’t know why you need it, then you don’t need it!
❗️ The Function consumes 0.1 «Token of Function» per Expression parsing.
▪️ Example 1:num%glob% - will set the name of the variable «num» with the value from the variable «glob» at the end. If «glob» == «1», then we get «num1».
▪️ Example 2:num{1+%glob%} - will set the variable name «num» with the value «1+%glob%» at the end. If «num» == «1», then we get «num2».
▪️ Example 3:num{1+%glob%}_{2+%glob%} - will set the variable name «num» with the value «1+%glob»_«2+%glob» at the end. If «glob» == «1», then we get «num2_3».
❗️ Nuances of parsing expressions:{num1} and {num} are NOT correct because an unparsed value is generated.
"num" is correct.
To add feature go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Variables
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
👾 For 1 bot