BitwiseShiftLeft

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Operand> shifted left by <Shift> bitwise
Associationscom.livecode.bitwise
Summary

Shifts the bits of Operand left.

Parameters
NameTypeDescription
Operand

An expression which evaluates to an integer.

Shift

An expression which evaluates to an integer.

Example
variable tVar
put 7 shifted left by 2 bitwise into tVar -- tVar contains 28
Values
NameTypeDescription
return

The result of bit-shifting Operand left by Shift places.

Description

Shifts the bits of Operand left. Shifting the bits of Operand left by x is equivalent to multiplying by 2^x.

Tagsbitwise operations