Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is probably the second most common statement to use. It is helpful when working
with fields that contain multiple values or when working with multiple issues
(just for an example)If/else statements are one of the most fundamental tools in writing scripts. These statements check to see if a statement is true, if it is true it will perform a set of actions. If it is not true it will skip those actions and continue to the next statement until a statement is true or it runs out of statements to check.

Example 1 -

...

Always true

Insert excerpt
PSJ:If-Else Example 1PSJ:
If-Else Example 1
nopaneltrue

Example 2 -

...

Always false

Insert excerpt
PSJ:If-Else Example 2PSJ:
If-Else Example 2
nopaneltrue

Example 3 -

...

Sometimes true

PSJ:
Insert excerpt
If-Else Example 3
If-Else Example 3PSJ:
nopaneltrue

Example 4 - If, else-if

Insert excerpt
If-Else Example 4
If-Else Example 4
nopaneltrue

Example 3 - If, else-if, else

Insert excerpt
If-Else Example 5
If-Else Example 5
nopaneltrue