Conditional Operator
Conditional Operator
In Solidity, the conditional operator is written using the "?" and ":" symbols and is also known as the ternary operator. The syntax for the conditional operator is as follows:
(condition) ? (value if true) : (value if false);
...
blockchainwithjd.hashnode.dev1 min read