BooleanX

signal TPT.BooleanX([string name])

Declares a new assessment variable of type boolean and exports the variable to the export record for signal viewer.

Parameters:

[name] (optional) logical name of the new assessment variable. This parameter is optional. If specified, this name is used for the signal viewer and report. If not specified, the name will be automatically derived from the variable name it is assigned to. Example foo = TPT.BooleanX() leads to a new assessment variable with logical name foo

Returns:

new assessment variable

Examples:

   # create a boolean assessment variable with name "dv" and set the value to constantly true
   dv = TPT.BooleanX();
   dv := true;
   
   # create a boolean assessment variable with name "dc" but shown as "visible dv" 
   #  in report and signal viewer
   dc = TPT.BooleanX("visible dv");
   dc(t) := (t < 1sec) ? true : false; # value changes from true to false after 1sec