Home / Uncategorized / IF Chip Broken? Here's The Real Solution In Rec Room

IF Chip Broken? Here's The Real Solution In Rec Room

Video Summary

In this video, I explain how to use IF chips in Rec Room, which are chips that test whether something is true or false. I demonstrate how to access the IF chip from the palette, connect it to a boolean variable, and show how it executes different outputs based on whether the condition is true (then section) or false (else section). This chip is useful for testing conditions and controlling the flow of your game logic in Rec Room.

“`html

IF Chip Broken? Here’s The Real Solution In Rec Room

Hey everybody, it’s Under My Cap and welcome back to another video! Today I’m going to be showing you how to use IF chips inside of Rec Room. If you’d prefer to watch the video version, you can check it out here: Watch the video on YouTube.

What Is an IF Chip?

An IF chip is basically a chip that tests whether something is true or false. Inside of the game, if you want to test if a variable is true, then the IF chip is exactly what you need.

How to Find the IF Chip

First of all, this is what the chip looks like — it resembles a little arrow, and it looks identical every time you spawn it in. To get the chip, you simply want to open your palette at the bottom and type in “if”. It’s that straightforward!

Setting Up a Variable

To really explain how the IF chip works, we’re also going to need a variable. For this demonstration, I’m grabbing a Bool variable. A Bool variable is a type of variable that is either set to true or false. If you go to the wire, you can see it switches between those two states, and we are able to write to this variable. For this demonstration, I’m going to write the variable to true.

How the IF Chip Works

Once you grab the output from the variable and plug it into the IF chip, you’ll notice something very important. Because the variable is set to true, when we execute, the logic will come out of the “then” section of the chip. You can see the “then” part of the chip light up, which confirms the variable is true. The same logic applies in reverse — if we set the variable to false and then execute, you’ll notice the output comes out of the “else” section instead.

Wrapping Up

And that is pretty much how to use the IF chip inside of Rec Room! It is a really useful chip that allows you to test whether results are similar, and if they are, you can execute your logic through this chip accordingly. I hope this helped clear things up for you and made working with IF chips a little easier!

If you did enjoy this post and the video, make sure to leave a like and subscribe over on YouTube. I can’t wait to see you in the next one!

“`

Video Thumbnail

Leave a Reply