Bitshift

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

pesekjan

New Member
Oct 30, 2018
2
5
3
22
Czech Republic
BitShift
Skript addon for custom classes.

Requirements:

Syntax:
Conditions
Code:
<condition> && <condition> - Conditional-AND operator
<condition> || <condition> - Conditional-OR operator
!<condition> - Inverts the result of a condition
%booleans%? - Checks if all booleans are true
Bitwise Operators
Code:
%number% & %number% - Bitwise AND
%number% | %number% - Bitwise inclusive OR
%number% ^^ %number% - Bitwise exclusive OR
~%number% - Unary bitwise complement
Shift Operators
Code:
%number% << %number% - Signed left shift
%number% >> %number% - Signed right shift
%number% >>> %number% - Unsigned right shift
Unary Operators
Code:
!%boolean% - Inverts the value of a boolean
Bitshift also supports hexadecimal and binary number formats.
Code:
set {_result} to 0xFF - 0xAA
set {_result} to 0b1100 | 0b0011

GitHub repository for reporting issues here, happy Skripting! ♥