Earn While Learning Web3 Programming>> Start Here FREE!!!
EXERCISE: Full List Of Solidity Operators Out There:
NOTE: each time you take the time to do exercises like this, you expand your knowledge
and help other student coming behind you to have solid content to aid their study:
i. Research Solidity Operators out there to expand your knowledge
ii. Check this forum for full list of "Full List Of Solidity Operators":
iii. below it past a function with if statement using the operator you mentioned
iv. Post MAXIMUM of 1 Solidity Operators and Explain What It Does/Use case which has not been listed yet in this forum
(NOTE: please, don’t repeat what has been posted and use the numbering.
For example if the last post answer was number (5), yours should be number (6) and so on.
This will help ensure we have helpful non repetitive collection of full list of Solidity Operators)
NOTE:
This Is An Exercise From Our FREE Smart Contract Development With Solidity For Beginners Course (If you have not enrolled yet, you can join the course totally for FREE).
(1) Logical Operator in Solidity like "not Equivalent to" written as !=
if (a != b) {
//if condition true, run this code
return "A Not Equivalent To B";
} else {
//if condition false, run this code
return "A Equivalent To B";
}
//since "a" is not equivalent or same as "b", the above solidity code will return "A Not Equivalent To B" and terminate the if statement.