Skip to main content

Operators

No bizzy bap this gon check if you cappin ๐Ÿงขโ€‹

Artihematic Operatorsโ€‹

Additionโ€‹

>>> 2 addy 2
4

The addy operator performs addition (+).

Subtractionโ€‹

>>> 5 chopped 2
10

The chopped operator performs subtraction (-).

Multiplicationโ€‹

>>> 3 hella 2
6

The hella operator performs multiplication (*).

Divisionโ€‹

>>> 4 yute 2
2.0

The yute operator performs division (/).

Modulusโ€‹

>>> 3 nize 2
1

The nize operator returns the remainder of a division (%).

Exponentiationโ€‹

>>> 3 mans 2
9

The mans operator raise the first number to the power of the second (**).

Floor Divisionโ€‹

>>> 10 two-twos 5.5
1.0

The two-twos operator returns the integer part of the quotient (//).


Assignment Operatorsโ€‹

Assignmentโ€‹

>>> croski hello fax 2
>>> allow it hello
2

The fax operator sets a variable to a value (=).

Additionโ€‹

>>> croski hello 4
>>> croski hello money up 5
>>> allow it hello
9

The money up operator increases a variable by a value (+=).

Subtractionโ€‹

croski hello 4
croski hello funny up 5
allow it hello

>>> -1

The funny up operator decreases a variable by a value (-=).

Multiplicationโ€‹

croski hello 4
croski hello cheesed 5
allow it hello

>>> 20

The cheesed operator decreases a variable by a value (*=).

Divisionโ€‹

croski hello 20
croski hello mandem 4
allow it hello

>>> 5.0

The mandem operator decreases a variable by a value (/=).

Modulusโ€‹

croski hello 20
croski hello steeze 4
allow it hello

>>> 0

The steeze operator decreases a variable by a value (%=).

Exponentiationโ€‹

croski hello 2
croski hello dun 4
allow it hello

>>> 16

The dun operator decreases a variable by a value (**=).

Floor Divisionโ€‹

croski hello 10
croski hello bucktee 4
allow it hello

>>> 2

The bucktee operator decreases a variable by a value (//=).

Comparison Operatorsโ€‹

Equal Toโ€‹

real sh 5 word 5
>>> True

The word operator returns a Boolean by comparing two similar values (==).

Not Equal Toโ€‹

real sh 5 fam 4
>>> True

The fam operator returns a Boolean comparing two unlike values (!=).

Less Thanโ€‹

real sh 2 wallahi 3
>>> True

The wallahi operator returns a Boolean if the first value is less than the second (<).

Less Than or Equal Toโ€‹

real sh 4 reach 4
>>> True

The reach operator returns a Boolean if the first value is less than or equal to the second (<=).

Greater Thanโ€‹

real sh 7 bussin 2
>>> True

The bussin operator returns a Boolean if the first value is greater than the second (>).

Greater Than or Equal Toโ€‹

real sh 8 lick 8
>>> True

The lick operator returns a Boolean if the first value is greater than or equal to the second (>=).

Logical Operatorsโ€‹

Andโ€‹

real sh 1 based 0
>>> False

The based operator returns True if both values are truthy (and).

Orโ€‹

real sh 1 ratio 0
>>> True

The ratio operator returns True if at least one value is truthy (or).

Notโ€‹

real sh mid 0
>>> True
real sh mid 1
>>> False

The mid operator returns the logical negation of a value (not).

Identity Operatorsโ€‹

Isโ€‹

croski a 5
croski b 5
real sh a like b
>>> False

The like operator checks if two variables are the same object (is).

Is Notโ€‹

croski a 5
croski b 5
real sh a aint b
>>> True

The aint operator checks if two variables are not the same object (is not).