The <edge> block detects rising and/or falling edges by comparing the “in” input with the “in(n-1)” output. Note that on the first execution, the “out” output will be “invalid” because the “in(n-1)” output is not yet available. The “⚙Rise” and “⚙Fall” inputs allow you to select the types of edges to detect.
•« in » : This is the boolean variable for which you want to detect state changes. The default value is 0 (integer type)
•« ⚙Rise » : If True, rising edges will be detected. The default value is True (boolean type),
•« ⚙Fall » : If True, falling edges will be detected. The default value is False (boolean type)
•« out » : Is True if an edge is detected
•« in(n-1) » : Represents the state of the “in” input from the previous execution; it is a cached variable, which explains the apple-green background color.
All inputs and outputs are of type bool.