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
From the course: Blockchain: Learning 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Solidity syntax basics5m 31s
-
(Locked)
Basic syntax of a contract5m 52s
-
(Locked)
Types in Solidity6m 31s
-
(Locked)
Units and global variables5m 37s
-
(Locked)
Other special variables2m 37s
-
(Locked)
Functions overview3m 40s
-
(Locked)
Operators in Solidity4m 46s
-
(Locked)
Conditionals in Solidity3m 55s
-
-
-
-