Color Remote Control Logic Switch Function
一、Logical Switches
Logical switches are virtual two-position switches whose values (on/off or +100/-100) are based on the evaluation (true/false) of defined logical expressions. Once configured, logical switches can be used anywhere in EdgeTX where physical switches can be defined.
The Logical Switches page in the model settings shows an overview of all configured logical switches and their configuration options.
Logical Switches Screen:
Selecting the + button will allow you to select an unused logical switch for configuration.
Selecting a configured logical switch will provide you with the following options:
- Edit - opens the logical switch configuration page for the selected logical switch.
- Copy - copies the selected logical switch.
- Paste - pastes the copied logical switch onto the selected logical switch. Note: This will overwrite the selected logical switch.
- Clear - deletes all configuration options for the selected logical switch.
Logical Switch Configuration Screen:
After selecting to edit a logical switch, you will have the following configuration options:
- Func - the logical function you want to use. See Logical Switch Functions below for descriptions of the possible functions you can use.
- V1 - the first variable in the expression to be evaluated.
- V2 - the second variable in the expression to be evaluated.
- AND Switch - the switch that must be activated to allow the logical switch to be evaluated as active.
- Duration - the duration for which the logical switch remains active (true) after the activation conditions are met. If set to 0.0, the logical switch will remain active (true).
- Delay - activation of the logical switch
二、Logical Switch Functions
In the expressions, a and b represent sources (sticks, switches, etc.), and x represents the constant (value) to be compared.

——This article is cited from the EdgeTX User Manual: https://zkl2333.gitbook.io/edgetx-user-manual/color-radios/model-settings/logical-switches**