not
Description
The not block performs a logical negation of a single input value. If the input receives the logical value true, the output emits false. If the input receives the logical value false, the output emits true.
The block has one input and one output. It does not require the use of inputs labeled with the tag block.
If the received value cannot be interpreted as a logical value, the block treats it as the absence of a valid logical state and emits null at the output.
Configuration parameters
| Parameter name | Value |
|---|---|
Block duplicated value (filter_duplicated_values) |
Required boolean value true or false. When set to true, the block does not emit the same result again if it is identical to the current block state. When set to false, each new input change causes the result to be emitted even if it is the same as the previous one. |
Input handling
Each new change received on the input is processed independently:
- logical
truecausesfalseto be emitted - logical
falsecausestrueto be emitted - a value that cannot be read as logical
trueorfalsecauses the result to becomenull
The block does not use the history of other input connections and does not combine multiple states in any way. The result is always determined only by the value that has just been received.
Ignored cases:
- when
filter_duplicated_values = trueand the new input value leads to the same result as the current block state
This means, among other things, that if the block is already in the null state and a non-logical value appears on the input again, such a change will not be emitted again when duplicate filtering is enabled.
Block outputs
The block has one output.
The output becomes:
- false after receiving the logical value true
- true after receiving the logical value false
nullafter receiving a value that cannot be interpreted as a logical value
Block status description
The description visible below the block reflects the last processed type of change:
nullbefore the first significant change or after receiving a non-logical valuetrue -> falseafter receiving the logical value truefalse -> trueafter receiving the logical value false
Errors visible to the user
The block can display the following error messages:
| Error code | Error description |
|---|---|
Missing filter_duplicated_values configuration. |
The filter_duplicated_values parameter is missing in the configuration or the parameter cannot be read as a boolean value. |
Input disconnected. |
No other block is connected to the block input. |
Examples
- If
trueappears on the input,falseappears on the output and the block description changes totrue -> false. - If
falseappears on the input,trueappears on the output and the block description changes tofalse -> true. - If a number, text, or
nullappears on the input,nullappears on the output and the block description changes tonull. - If
filter_duplicated_values = trueand two consecutivetrueinputs appear one after another, the block emits only the first resultingfalse. - If
filter_duplicated_values = falseand two consecutivetrueinputs appear one after another, the block emits the resultingfalsetwice.