Switch/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „== Description ==“)
 
(Založena nová stránka s textem „== Output parameters ==“)
 
(Není zobrazeno 15 mezilehlých verzí od stejného uživatele.)
Řádek 7: Řádek 7:
 
'''Alias: SW'''
 
'''Alias: SW'''
  
'''Rozvětvení běhu podle hodnoty'''
+
'''Selects a branch by value'''
  
Rozvětvení běhu podle hodnoty v parametru [[#value-| Value]]. Odpovídá-li hodnotě některého případu, spustí se příslušná větev, jinak se spustí větev default. Počet případů se nastavuje parametrem [[#casecount-| CaseCount]] a hodnoty případů parametry [[#case1-| Case1]] [[#case1-| CaseN]], kde N odpovídá nastavenému CaseCount.
+
Selects a branch by value in parameter [[#value-| Value]]. If it matches the value of a case, the corresponding branch is executed, otherwise the default branch is executed. The number of cases is set with the [[#casecount-| CaseCount]] parameter and the case values ​​with the parameters [[#case1-| Case1]] to [[#caseN-| Case1]], where N corresponds to the value of CaseCount.
  
== Vstupní parametry ==
+
== Input parameters ==
  
 
<span id="value-"></span>
 
<span id="value-"></span>
 
=== Value ===
 
=== Value ===
  
Typ [[Special:MyLanguage/Datové typy#String | String]]
+
Type [[Special:MyLanguage/Datové typy#String | String]]
  
Hodnota určující větev běhu, pokud odpovídá některému z [[#case1-| Case]]. Jinak se volí větev default.
+
A value that determines the branch to be executed if it matches one of the [[#case1-| Cases]]. Otherwise, the default branch is chosen.
  
 
<span id="casecount-"></span>
 
<span id="casecount-"></span>
 
=== CaseCount ===
 
=== CaseCount ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Požadovaný počet případů. Použijte konstantní hodnotu. Napojení parametru se nedoporučuje.
+
Required number of cases. Use a constant value. Use of parameter link is not recommended.
  
 
<span id="case1-"></span>
 
<span id="case1-"></span>
 
=== Case1 ===
 
=== Case1 ===
  
Typ [[Special:MyLanguage/Datové typy#String | String]]
+
Type [[Special:MyLanguage/Datové typy#String | String]]
  
Hodnota případu.
+
Value of case.
  
 
=== Enabled ===
 
=== Enabled ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
+
Enables or disables the command. If the value is 0, the command will not be executed.
  
 
=== PreWait ===
 
=== PreWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
 
=== PostWait ===
 
=== PostWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds after executing the command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==

Aktuální verze z 25. 9. 2025, 11:37

Jiné jazyky:
English • ‎čeština

Description

Alias: SW

Selects a branch by value

Selects a branch by value in parameter Value. If it matches the value of a case, the corresponding branch is executed, otherwise the default branch is executed. The number of cases is set with the CaseCount parameter and the case values ​​with the parameters Case1 to Case1, where N corresponds to the value of CaseCount.

Input parameters

Value

Type String

A value that determines the branch to be executed if it matches one of the Cases. Otherwise, the default branch is chosen.

CaseCount

Type Number

Required number of cases. Use a constant value. Use of parameter link is not recommended.

Case1

Type String

Value of case.

Enabled

Type Number

Enables or disables the command. If the value is 0, the command will not be executed.

PreWait

Type Number

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

PostWait

Type Number

Delay in milliseconds after executing the command. It has no effect if Enabled=0.

Output parameters