The AppleScript (ON/OFF) building block runs an AppleScript and interprets the result from the script as an ON/OFF value.
An AppleScript (ON/OFF) building block has one ON/OFF input and one ON/OFF output. When the input value turns ON, the AppleScript (ON/OFF) building block will run its associated script, interpret the result of the script as an ON/OFF value, then change the output to the result of the script.
An AppleScript building block is configured using the common AppleScript building block settings.