<< else Control flow end >>

Scilab Help >> Scilab > Control flow > elseif

elseif

palavra-chave usada na estrutura "if-then-else" (significa "senão, se...")

Descrição

Ver if,then,else .

Example

a=1;
if a==1 then
    disp("a equals 1")
elseif a==2 then
    disp("a equals 2")
else
    disp("Case not handle")
end

Histórico

VersionDescription
6.0.0 elseif is now protected: Assignments like elseif=1 are no longer possible.

Report an issue
<< else Control flow end >>