Switch

Z Wiki
Verze z 25. 9. 2025, 11:37, kterou vytvořil SamiecK (diskuse | příspěvky) (Založena nová stránka s textem „== Output parameters ==“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Přejít na: navigace, hledání
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