From the course: Blockchain: Learning Solidity

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Operators in Solidity

Operators in Solidity

- [Instructor] Now let's take a look at the operators available with examples. So I'm going to delete the functions here and start with my first operator. So the arrhythmic operators are basically the same as any other programming languages and we use two of them in the previous video. So there's the plus, the minus, the multiply, divide. This is the modulus. You have the plus plus which basically is an increment or a decrement. So let me give you an example like we've done in a previous video. You declare an integer A equals two and then again an integer B equals three and then an integer C, which is A plus B. You can do A divided by B. You can do all of these operators, modulus and so on so forth. There are also the logical operators, and again this is very similar to a lot of languages. There's the exclamation point, which means not equal. There's the and which means basically this one and this one. So for…

Contents