How do I perform an arithmetical sum operation
This example demonstrates performing an arithmetical sum operation for two or more values using "sum" command. This command is similar to arithmetic addition which performs addition on the list of numeric values provided.
In the solution shown below, you will see that addition operation is performed for two numbers and the result is stored into a variable.
Solution:
# | Command | Target | Value |
---|---|---|---|
Add the two numbers by using the sum command | |||
1 | sum |
1189,1768 | result |
Tips, Tricks, Gotchas & Best Practices:
- The list of numeric values to be added should be separated by a comma(,).
- You can use the command "sumAndWait" if you want to wait after the sum operation is performed.
- As a best practice, it is always advisable to define the variable names without any spaces and if you want to differentiate the words, use underscores.