980 B
980 B
addResult()
The addResult() command is used to return the content of a variable as part of the command or function response. It is the way to present results or processed data from commands and operations performed in the language.
Parameters
- variable Type: var Description: The variable whose content is to be returned as the result. It should be a variable that contains the value or data you want to include in the response.
Command Flow
Example Usage
Suppose we have performed an operation and want to return the result stored in the result variable.
// Define the variable with the result of an operation
result = "Operation completed successfully."
// Call the command to return the content of the variable
addResult(result)
In this example, the addResult(result) command will return the content of the result variable, which is "Operation completed successfully.". This content will be presented as part of the response.