Switch/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „'''Selects a branch by value'''“)
(Založena nová stránka s textem „Selects a branch by value in parameter Value. If it matches the value of a case, the corresponding branch is executed, otherwise the default b…“)
Řádek 9: Řádek 9:
 
'''Selects a branch by value'''
 
'''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 ==
 
== Vstupní parametry ==

Verze z 25. 9. 2025, 11:32

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.

Vstupní parametry

Value

Typ String

Hodnota určující větev běhu, pokud odpovídá některému z Case. Jinak se volí větev default.

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