Conditional structures: Difference between revisions
Content deleted Content added
PatGarrett (talk | contribs) Add Scilab section |
PatGarrett (talk | contribs) |
||
Line 3,765: | Line 3,765: | ||
=={{header|Scilab}}== |
=={{header|Scilab}}== |
||
===if-then-else=== |
===if-then-else=== |
||
⚫ | |||
<lang> |
|||
⚫ | |||
[elseif conditioni then instructions] |
[elseif conditioni then instructions] |
||
.... |
.... |
||
[else instructions] |
[else instructions] |
||
end |
end</lang> |
||
</lang> |
|||
===select-case=== |
===select-case=== |
||
<lang> |
<lang>select expresion |
||
select expresion |
|||
case expresion1 then instructions1 |
case expresion1 then instructions1 |
||
[case expresion2 then instructions2] |
[case expresion2 then instructions2] |
||
Line 3,780: | Line 3,777: | ||
[case expresionn then instructions] |
[case expresionn then instructions] |
||
[else instructions] |
[else instructions] |
||
end |
end</lang> |
||
</lang> |
|||
=={{header|Seed7}}== |
=={{header|Seed7}}== |