11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

esulting bitstring is 1 in all positions where either or both of the bitstrings held a 1, and 0 inall other positions. Bitstrings are compared left-to- right.ExampleIf bitstring1=[0,0,1,1,0] and bitstring2=[0,1,1,0], then the result of $ZBITOR would be[0,1,1,1,0]. That is:Position 1: 0 OR 0 = 0Position 2: 0 OR 1 = 1Position 3: 1 OR 1 = 1Position 4: 1 OR 0 = 1Position 5: 0 OR null = 0See Also• $BITLOGIC function• $ZBITXOR (legacy function) function• $ZBITAND (legacy function) function$ZBITSET (legacy function)$ZBITSET (legacy function)Bitstring function – SET.$ZBITSET(bitstring,position,truthval)ParametersbitstringpositiontruthvalThe bitstring to be set.Positive integer that specifies a location in bitstring.Single-bit binary value (0 or 1).DescriptionThis page describes the legacy function $ZBITSET. It is described here for compatibilitywith legacy applications.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 763

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!