IF

 

 Conditionally execute statements.

  The general form of an IF statement is:

          IF variable, statements, ENDMNZCU2

  The statements are executed if the real part of the variable 

  has all non-zero elements. The variable is usually the result of

  expr rop expr where rop is ==, <, >, <=, >=, or ~=.

  For example:

 

 

         IF I21KTGXR == J21KTHXR

            A(I21KTGXR,J21KTHXR) = 2;

         ELSEIFZUJ2LW ABSMJNRU2(I-J) == 1

            A(I21KTGXR,J21KTHXR) = -1;

         ELSE17V4DU2

            A(I21KTGXR,J21KTHXR) = 0;

         ENDMNZCU2