Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cheat_sheets/ruby-part2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: cheat_sheet
topic: Parentheses
---

# Ruby Cheat Sheet - Part 2

## Control Structures

| Name | Description | Syntax | Examples |
| -------------- | ------------------------ | ----------------------------------------- | -------------------------------------------------------|
| if | Used to create a branch in your program: Code is only executed if a condition is true | `if condition`<br>&nbsp;&nbsp;&nbsp;`# code`<br>`end` | `if user_name.empty?`<br>&nbsp;&nbsp;`puts "Please give us a name!"`<br>`end` |