Commenting action logic
Commenting refers to turning off a part of the action logic from execution. This is helpful to skip a part of the logic temporarily without deleting it. You can un-comment these statements as needed in the future.
You can comment one or more statements by selecting and pressing "/" . A block of logic can be uncommented by pressing "Ctrl-/" on the selected block.
When dealing with logic blocks such as if/else, loop etc. comment/un-comment fails in case the logic can go into inconsistent state.
Note: Commented logic continues to keep reference to its dependencies such as elements or parameters. If you try to delete any such elements or parameters, you will still get a reference error based on commented lines as well.
Annotation is a free-form note you can insert in action logic, which is helpful to describe the logic or as a placeholder text for the purpose of readability or clarification. You can insert an annotation by typing "/" or "annotate" in the new-statement field. You can edit an existing annotation by simply clicking on it.
Exit Action is a special statement type that allows you to return out of action logic at any given point. By default, action logic executes all the way to the last statement. In case you need to abruptly return out of the action logic, use Exit Action statement. Typically such statements are associated with some form of conditional checking (if/else block)
Please sign in to leave a comment.