How to count the result of the difference between 2 numbers in variable and to set the result in the input settings parameters ? C# ?

Denis69

Client
Регистрация
15.10.2019
Сообщения
8
Благодарностей
1
Баллы
3
Hi,
Im not a developper

Do you help me , i would like to:
1/first count the diffrence betwen 2 numbers in 2 variables
Exemple: Var1: 30 and Var2= 5
How to have the result ? 30- 5= 25 (result)

2/After, it is possible to set the result in the"setting parameter"
I want to use this result to use it in launching a new template
Exemple: on a website I buy 30 credits. I use 5. I have 25 left. I hope that on the future launch of this template, Zenno will now take in "input settings" the number 25

Thx
Denis
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi,
Im not a developper

Do you help me , i would like to:
1/first count the diffrence betwen 2 numbers in 2 variables
Exemple: Var1: 30 and Var2= 5
How to have the result ? 30- 5= 25 (result)

2/After, it is possible to set the result in the"setting parameter"
I want to use this result to use it in launching a new template
Exemple: on a website I buy 30 credits. I use 5. I have 25 left. I hope that on the future launch of this template, Zenno will now take in "input settings" the number 25

Thx
Denis
If You want to just simple additions and subtraction operations then use Javascript action. will be easier.
45198

Just add both variables as in standard math.
Then You will get the result.
To use that result next time, You will have to save it somewhere.
In the list, in the table, in the database, etc.
Then next time when you run it You will have to take it from the same place you saved and use again.
 

Denis69

Client
Регистрация
15.10.2019
Сообщения
8
Благодарностей
1
Баллы
3
Hi,
For the point 1 work perfect ! Thx :-)
For point 2, i understand so is manually... but, is there a "way" that the result can be automatically indicated in input setting before launching another template? Or in the input setting, is only a manual action ? Thx
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi,
For the point 1 work perfect ! Thx :-)
For point 2, i understand so is manually... but, is there a "way" that the result can be automatically indicated in input setting before launching another template? Or in the input setting, is only a manual action ? Thx
Input settings are static.
Nothing is manual.
When You get new value You save it in a file on your PC.
then any other templates or same template can get that value.
that's the easiest way.
Although if you will want to run such a solution as multithreaded then you can experience problems.
As sometimes one thread will take value for subtraction and other thread at the same time will take the same value, so at the end You will get wrong calculations.
single-threaded will work just fine.
 

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