Operators
Arithmetic Operators
Operator | Name | Example |
---|---|---|
+ | Add | |
- | Subtract | |
* | Multiply | |
/ | Divide | |
% | Remain | |
div | Integer Division | div 7 3 |
rem | Remain | rem 7 3 |
Logical Operators/Functions
Operator | Name | ||
---|---|---|---|
&& | And | ||
\ | \ | Or | |
not | Not | ||
Relational Operators
Operator | Name |
---|---|
== | Equal |
/= | Not Equal |
< | Less |
> | Great |
<= | Less Equal |
>= | Great Equal |
Bit Operators
BitOp | Name |
---|---|
band | Bit and |
bor | Bit or |
bnot | Bit not |
bxor | Bit xor |
bsl | Bit shift left |
bsr | Bit shift right |
当前内容版权归 hamler-lang 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 hamler-lang .