How do I print a string or value
This example demonstrates how to print a string or the value of any variable.
In the solution shown below, you will see that a string "Application is launched successfully." is printed after launching HICC using "echo" command.
If you want to print the value of any variable then you can use the notation '${}' (ex: ${<Variable Name>}) in target of "echo" command.
Solution:
# | Command | Target | Value |
---|---|---|---|
To print the string | |||
1 | echo | Application is launched successfully. |
Tips, Tricks, Gotchas & Best Practices:
- To know more about how to initialize a variable, click here.
- You can use "echo" command after the storeXXX commands to know the value of the variable which helps in debugging the failures.
- You are encouraged to use the Variable Inspector to know the values of variables.