mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-12-06 23:21:49 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
720 B
Markdown
9 lines
720 B
Markdown
# Conditional Statements
|
|
|
|
Conditional statements allow you to execute different blocks of code based on whether a certain condition is true or false. They provide a way to control the flow of your program, enabling it to make decisions and respond differently to various inputs or situations. Common conditional statements include `if`, `elsif`, `else`, and `unless`.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Conditional Logic](https://www.theodinproject.com/lessons/ruby-conditional-logic)
|
|
- [@article@The Beginner's Guide to Ruby If & Else Statements](http://rubyguides.com/ruby-tutorial/ruby-if-else/)
|
|
- [@article@Ruby - if...else, case, unless](https://www.tutorialspoint.com/ruby/ruby_if_else.htm) |