A shift operator is used to move the binary flags in a certain direction along the binary digits. In NWScript, the shift operators are <<, >>, and >>>. All shift operators use the integer data type both for the binary field whose flags are being shifted and for the number of places the flags are shifted. The binary field is entered to the left of the shift operator, and the number of places is entered to the right of the shift operator. The number of places is interpreted by machine code modulo 32 (thus shifts are from 0 to 31 places, values outside the range are interpreted as their remainder when divided by 32). The binary field in NWScript consists of 32 bits. No shift in NWScript is circular, thus binary flags shifted outside the binary field are lost.
| Graph IRI | Count |
|---|---|
| http://dbkwik.webdatacommons.org | 5 |