Diferenças entre edições de "Selecionar caso"
Da wiki ArcoWiki
(Criou a página com "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;...") |
(Sem diferenças)
|
Edição atual desde as 09h37min de 15 de junho de 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