---
title: "Conditionals"
url: /docs/en-us/tutorials/fundamentals/coding-3/landing
last_updated: 2026-06-19T03:26:31Z
description: "A tutorial series on how to use if statements in Luau within Roblox Studio."
---

# Conditionals

### Series description

Many experiences have actions that only take place if a list of requirements are met. You may have seen rooms only specific teams could enter or inventory items only some players could purchase. This series will cover how to set up code that says, "If this happens, then do that."

### Objectives and prerequisites

| **Learning Objectives** | Understand the logic behind `if` `then` statements and how to set up multiple scenarios with the keywords `elseif` and `else`. |
| --- | --- |
| **Prerequisites** | Before beginning this course, readers should be able to navigate Roblox Studio, as well as declare new variables and functions. |

### Series contents

| Article | Description |
| --- | --- |
| [Intro to If Statements](/docs/en-us/tutorials/fundamentals/coding-3/intro-to-if-statements.md) | Learn how if statements work and how to code them in Luau. |
| [If Statement Practice: Trap Parts](/docs/en-us/tutorials/fundamentals/coding-3/traps-with-if-statements.md) | Use conditionals to create better traps that only hurt avatars and humanoids. |
| [If Statement Practice: Power Ups](/docs/en-us/tutorials/fundamentals/coding-3/powerups-with-if-statements.md) | Practice using `if` statements and create a part that increases the players' walking speed. |
| [Multiple Conditions](/docs/en-us/tutorials/fundamentals/coding-3/multiple-conditions.md) | Design code that accounts for multiple scenarios with `else` and `elseif`. |
| [Multiple Conditions Practice: Awarding Points](/docs/en-us/tutorials/fundamentals/coding-3/give-points.md) | Use everything learned about conditionals to create a part that can award points to players. |