How to add data to a variable?

zmike

Client
Регистрация
24.10.2019
Сообщения
127
Благодарностей
8
Баллы
18
Is it possible to add data to an existing variable?

I have variable A and variable B

I need to merge them into variable C
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 847
Баллы
113
You should use Add action>Data>Variables processing
or Own code>Javascript for math actions with values:
JavaScript:
{-Variable.var1-}+{-Variable.var2-}
 

zmike

Client
Регистрация
24.10.2019
Сообщения
127
Благодарностей
8
Баллы
18
You should use Add action>Data>Variables processing
or Own code>Javascript for math actions with values:
JavaScript:
{-Variable.var1-}+{-Variable.var2-}
Can the code maintain the line break?

Because {-Variable.var1-} is actually
1
2
3
4

{-Variable.var2-} is
a
b
c
d
e

I wish the final result to be

1
2
3
4
a
b
c
d
e

So there is not blank line between var1 and var 2
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 847
Баллы
113
Can the code maintain the line break?

Because {-Variable.var1-} is actually
1
2
3
4

{-Variable.var2-} is
a
b
c
d
e

I wish the final result to be

1
2
3
4
a
b
c
d
e

So there is not blank line between var1 and var 2
Code is for math operations only
You should use Processing variable action block.
 

kingbin

Пользователь
Регистрация
22.03.2019
Сообщения
74
Благодарностей
13
Баллы
8
Simply, try this with Text Processing action block: {-Variable.var1-} {-String.Enter-}{-Variable.var2-}
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)