The $ZBITSET function returns an edited copy of the input bit string with a specified bit set to the value of the truth-valued expression.
The format for the $ZBITSET function is:
$ZBITSET(expr,intexpr,tvexpr)
The expression specifies the input bit string.
The integer expression specifies the position of the bit to manipulate. Arguments that are negative, zero, or exceed the length of the bit string produce a run-time error. $ZBIT functions count the first bit as position one (1).
The truth-valued expression specifies the value to which to set the specified bit (0 or 1).