H hsanyue Пользователь Регистрация 13.03.2014 Сообщения 58 Благодарностей 0 Баллы 6 15.04.2015 #1 hi buddy, I try to make a variable add another variable in zennopster. for example, a variable is 3 and another is 4 , how can I make variable.a+variable.b. and I want to put the result into variable.
hi buddy, I try to make a variable add another variable in zennopster. for example, a variable is 3 and another is 4 , how can I make variable.a+variable.b. and I want to put the result into variable.
lokiys Moderator Регистрация 01.02.2012 Сообщения 4 812 Благодарностей 1 187 Баллы 113 15.04.2015 #2 hsanyue сказал(а): hi buddy, I try to make a variable add another variable in zennopster. for example, a variable is 3 and another is 4 , how can I make variable.a+variable.b. and I want to put the result into variable. Нажмите, чтобы раскрыть... You can use javascript or C# for arithmetic operations
hsanyue сказал(а): hi buddy, I try to make a variable add another variable in zennopster. for example, a variable is 3 and another is 4 , how can I make variable.a+variable.b. and I want to put the result into variable. Нажмите, чтобы раскрыть... You can use javascript or C# for arithmetic operations
VladZen Administrator Команда форума Регистрация 05.11.2014 Сообщения 22 453 Благодарностей 5 913 Баллы 113 15.04.2015 #3 You can do it using Own Code action. Here is the example for C#: Код: int a = int.Parse(project.Variables["var1"].Value); int b = int.Parse(project.Variables["var2"].Value); return a + b; And here is for javascript: Код: {-Variable.var1-}+{-Variable.var2-}
You can do it using Own Code action. Here is the example for C#: Код: int a = int.Parse(project.Variables["var1"].Value); int b = int.Parse(project.Variables["var2"].Value); return a + b; And here is for javascript: Код: {-Variable.var1-}+{-Variable.var2-}
H hsanyue Пользователь Регистрация 13.03.2014 Сообщения 58 Благодарностей 0 Баллы 6 16.04.2015 #4 VladZ сказал(а): You can do it using Own Code action. Here is the example for C#: Код: int a = int.Parse(project.Variables["var1"].Value); int b = int.Parse(project.Variables["var2"].Value); return a + b; And here is for javascript: Код: {-Variable.var1-}+{-Variable.var2-} Нажмите, чтобы раскрыть... thx
VladZ сказал(а): You can do it using Own Code action. Here is the example for C#: Код: int a = int.Parse(project.Variables["var1"].Value); int b = int.Parse(project.Variables["var2"].Value); return a + b; And here is for javascript: Код: {-Variable.var1-}+{-Variable.var2-} Нажмите, чтобы раскрыть... thx