On this page:
Table of Contents |
---|
Excerpt |
---|
Statements provide a convenient method to execute conditional or repetitive operations. The syntax is C/C++/Java like, so things should be easy to grasp. |
If-Else Statement
The if-else statement offers support for conditionally executing operations.
...
Code Block |
---|
if (isNotNull(fixVersions) and affectedVersions == {"1.1"}) { affectedVersions = {"1.1", "1.0" , "1.2"}; fixVersions = {"1.2" , "1.2" , "1.3"} ; } else { affectedVersions = {"1.1"}; fixVersions = {"1.0"}; } |
For Statement
The for for statement provides a compact way to iterate over a range of values. Programmers often refer to it as the for loop because of the way in which it repeatedly loops until a particular condition is satisfied.
...