<100 subscribers


Share Dialog
Share Dialog
🤷Conditional Statements (If / Else)
🤷Solidity supports conditional statements if, else if and else.
🤷The first function "foo" we have: ➡️"if(condition is true?) then do something (condition is false?) next step" ➡️"else if(another condition is true?) then do something (condition is false?) next step" ➡️"else do something" 🤷The second function "ternary" we have another way to do an if/else statement by using "condition" ? (true part) : (false part)
🤷Conditional Statements (If / Else)
🤷Solidity supports conditional statements if, else if and else.
🤷The first function "foo" we have: ➡️"if(condition is true?) then do something (condition is false?) next step" ➡️"else if(another condition is true?) then do something (condition is false?) next step" ➡️"else do something" 🤷The second function "ternary" we have another way to do an if/else statement by using "condition" ? (true part) : (false part)
No comments yet