# Conditional

By [CryptoVincent](https://paragraph.com/@cryptovincent) · 2022-10-18

---

🤷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)`

---

*Originally published on [CryptoVincent](https://paragraph.com/@cryptovincent/conditional)*
