Recently Posted




Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/tutorial/public_html/mathforum/SSI.php on line 155
« for

statement condition.
The general form of the statement is

expression
statements
ELSEIF expression
statements
ELSE
statements
END

The statements are executed the real part of the expression
has all non-zero elements. The ELSE and ELSEIF parts are optional.
Zero or more ELSEIF parts can be used as well as nested ’s.
The expression is usually of the form expr rop expr where
rop is ==, <, >, <=, >=, or ~=.

Example
I == J
A(I,J) = 2;
elseif abs(I-J) == 1
A(I,J) = -1;
else
A(I,J) = 0;
end

See also relop, else, elseif, end, for, while, switch.

Tags: ,


Related posts

You may be the one to comment first. Please leave your message below.