Switch/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „== Input parameters ==“)
(Založena nová stránka s textem „A value that determines the branch to be executed if it matches one of the Cases. Otherwise, the default branch is chosen.“)
Řádek 18: Řádek 18:
 
Typ [[Special:MyLanguage/Datové typy#String | String]]
 
Typ [[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>

Verze z 25. 9. 2025, 11:35

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

Typ String

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

CaseCount

Typ Number

Požadovaný počet případů. Použijte konstantní hodnotu. Napojení parametru se nedoporučuje.

Case1

Typ String

Hodnota případu.

Enabled

Typ Number

Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.

PreWait

Typ Number

Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.

PostWait

Typ Number

Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.

Výstupní parametry