1 - S
Overview
Use this operator to invert a pseudo-boolean input value, where 0.0 means false, and 1.0 means true.Operator ports
Input S: Floating point valuesOutput 1-S: Floating point values
Properties
Find more information about changing properties here: "Properties Viewer"Caption
type: Word or phraseThe name of the object in the project. This name must not contain '.', '$' nor '@' characters.
For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".
Documentation
type: See descriptionOptional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.
Details
This operator is especially useful for calculations on pseudo-boolean control signals. Pseudo-boolen signal values are values that are defined to be boolean False if they are 0, and boolean True if they are greater than or equal to 1. If boolean values are defined this way, a logical AND operation equals multiplication, and a logical OR operation equals addition. The operator described here (1 - S) then equals a logical Inverter (True becomes False, and False becomes True).Of course, this operator can also be used in other situations, and is not limited to do calculations on pseudo-booleans.