Difference between revisions of "Select Case"
From ArcoWiki
(Created page with "The construct '''SELECT CASE''' is the technique to condition the execution of a program depending the value of a certain variable. <code><span style="color: green; t...") |
|||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | The construct '''[[ | + | The construct '''[[Select Case]]''' is the technique to condition the execution of a program depending the value of a certain [[variable]]. |
<code><span style="color: green; text-decoration: none;">$$ Example of Select Case</span><br/></code> | <code><span style="color: green; text-decoration: none;">$$ Example of Select Case</span><br/></code> | ||
| Line 24: | Line 24: | ||
::::<code>ENDCAS</code> | ::::<code>ENDCAS</code> | ||
::<code>ENDSEL</code> | ::<code>ENDSEL</code> | ||
| + | |||
| + | |||
| + | [[it:Seleziona caso]] | ||
| + | [[zh-cn:选择案例]] | ||
| + | [[pt:Selecionar caso]] | ||
| + | [[de:Wählen Sie Fall aus]] | ||
| + | [[es:Seleccione el caso]] | ||
| + | [[en:Select Case]] | ||
| + | |||
| + | [[Category:Dmis_Tutorial]] | ||
Latest revision as of 09:36, 15 June 2018
The construct Select Case is the technique to condition the execution of a program depending the value of a certain variable.
$$ Example of Select Case
DECL/INTGR,iDECL/CHAR,50,txi=ASSIGN/10SELECT/i
$$ i is the variable that controls the part program behaviorCASE/10
$$ If the i value is equal to 10tx=ASSIGN/CONCAT('THE ACTUAL VALUE OF X IS: ',STR(i))TEXT/OPER,tx
ENDCASCASE/20
$$ If the i value is equal to 20tx=ASSIGN/CONCAT('THE ACTUAL VALUE OF X IS: ',STR(i))TEXT/OPER,tx
ENDCASDFTCASTEXT/OPER,'X is not equal to the 2 cases'
ENDCAS
ENDSEL