Solidity – Strings
This topic is about Solidity - Strings. Solidity supports String literal using both double quote (") and single quote ('). It provides string as a data type to declare a…
This topic is about Solidity - Strings. Solidity supports String literal using both double quote (") and single quote ('). It provides string as a data type to declare a…
this topic is about Solidity - if...else if... statement. The if...else if... statement is an advanced form of if...else that allows Solidity to make a correct decision out of several conditions. Syntax The syntax…
This topic is about Solidity - if...else statement. The 'if...else' statement is the next form of control statement that allows Solidity to execute statements in a more controlled way. Syntax if (expression)…
This topic is about Solidity - if statement. The if statement is the fundamental control statement that allows Solidity to make decisions and execute statements conditionally. Syntax The syntax for a basic…
This topic is about Solidity - Decision Making. While writing a program, there may be a situation when you need to adopt one out of a given set of paths.…
This topic is about Solidity - Loop Control. Solidity provides full control to handle loops and switch statements. There may be a situation when you need to come out of…
This topic is about Solidity - For Loop. The for loop is the most compact form of looping. It includes the following three important parts − The loop initialization where we initialize our counter…
This topic is about Solidity - do...while loop. The do...while loop is similar to the while loop except that the condition check happens at the end of the loop. This means that the loop…
This topic is about Solidity - While Loop. The most basic loop in Solidity is the while loop which would be discussed in this chapter. The purpose of a while loop is to execute…
This topic is about Solidity - Loops. While writing a contract, you may encounter a situation where you need to perform an action over and over again. In such situations,…