ToggleVal

(Function Library)

Description: Toggles between TRUE (1) and FALSE (0), once each given period.
Returns: Boolean
Usage: Script or steady state.
Function Groups: Variable
Related to:  
Format: \FunctionLib.ToggleVal(Value)
Parameters:  
Value
Specifies the length of the period for each TRUE / FALSE cycle in seconds.
Comments:

This module is a member of the Function Library, and must therefore be prefaced by \FunctionLib as shown in the "Format" section.

Example:

\FunctionLib.ToggleVal(10)

Will return TRUE for five seconds followed by FALSE for five seconds, completing a cycle every ten seconds.