FIX Statement as a Boolean Function

The FIX statement can be used as a Boolean function. If the available state of the specified event is TRUE (available), the event is procured, the state is set to FALSE (not available), and FALSE is returned as the value of the function. If the available state of the specified event is FALSE (not available), the FIX statement returns TRUE, and the available state is left unchanged.

The FIX statement is sometimes referred to as the conditional procure function.

When the FIX statement has finished execution, the available state of the event is FALSE (not available).