OnHolder Block

OnHolder

If val input is TRUE, this block holds the output to a TRUE state for a defined amount of time.

If val input is FALSE, the output state is set to FALSE and the expiration time is reset.

The amount of time before the output TRUE state expires is defined either by onDuration (in seconds) or onStatusDuration.

If both are set, onDuration wins over onStatusDuration.

Input:

  • val (boolean)

  • onDuration (number) [unit: seconds]

  • onStatusDuration (duration)

Output:

  • result (boolean)