Skip to content
ChipWits Robot Coding Game
  • Home
  • About
  • Devlog
  • Team
  • Retro
    • ChipWits Emulator
    • Nostalgia
  • Sign Up
Demo + Wishlist
Demo + Wishlist
ChipWits Robot Coding Game
  • Home
  • About
  • Devlog
  • Team
  • Retro
    • ChipWits Emulator
    • Nostalgia
  • Sign Up

IBOL

40
  • CREATED CHIP SOLUTIONS REMAIN IN THE WORKSHOP GRID
  • SHARING YOUR CHIPWIT (IBOL CODES)
  • LOCKED CHIPS
  • JUNCTION
  • IF THING EQUALS
  • CONNECTORS
  • ACTION CHIPS
  • CONTROL CHIPS
  • SENSING CHIPS
  • STACK CHIPS
  • REGISTERS
  • CHIPS (FUNCTION AND HOW TO BUILD THEM)
  • ARGUMENT
  • OPERATOR
  • Operators
    • IF THING EQUALS
    • CYCLES AND FUEL COST LIST
    • SUBPANEL (OPERATOR)
    • PUSH NUMBER
    • PUSH THING
    • IF NUMBER EQUALS
    • IF NUMBER IS LESS THAN
    • POP
    • PUSH DIRECTION
    • IF DIRECTION EQUALS
    • DECREMENT
    • OPERATOR
    • INCREMENT
    • PUSH (OVERVIEW)
    • BOOMERANG
    • IF KEY
    • LOOP
    • IF HEADS
    • STOPLIGHT (CLASSIC MISSIONS)
    • SKATE
    • ZAP
    • SING
    • IF SMELL
    • PICKUP
    • IF FEEL
    • IF SEE

Controls and Settings

4
  • BASIC KEYBOARD CONTROLS AND KEYBOARD SHORTCUTS
  • BASIC MOUSE CONTROLS
  • YOUR CHIPWIT (GAME SETTINGS)
  • CAMERA CONTROLS

Advanced Programming

13
  • SUBPANEL (OPERATOR)
  • PUSH THING
  • IF THING EQUALS
  • PUSH NUMBER
  • IF NUMBER EQUALS
  • IF NUMBER IS LESS THAN
  • POP
  • MEMORY STACK
  • STACK CHIPS
  • PUSH DIRECTION
  • IF DIRECTION EQUALS
  • PUSH (OVERVIEW)
  • REGISTERS

Characters

1
  • PROFESSOR CHIP

Starting Information

1
  • STARTING INFORMATION LIST

Workshop and Playing

26
  • CREATED CHIP SOLUTIONS REMAIN IN THE WORKSHOP GRID
  • FUEL (ENERGY)
  • ENVIRONMENTAL THINGS
  • BAD THINGS
  • TYPES OF DAMAGE
  • HEALTH
  • CYCLES
  • SENSING CHIPS
  • LOCKED CHIPS
  • ACTION CHIPS
  • STACK CHIPS
  • CONTROL CHIPS
  • CONNECTORS
  • CHIPS (FUNCTION AND HOW TO BUILD THEM)
  • WORKING WITH CHIPS IN THE WORKSHOP
  • SHARING YOUR CHIPWIT (IBOL CODES)
  • WORKSHOP AND PLAY AREA
  • RESTART BUTTON
  • STEP BUTTON
  • WORKSHOP PROGRAMMING TOOLS BUTTONS AND WORKSHOP MENU
  • PLAY/PAUSE BUTTON
  • GAME SPEED SLIDER
  • DELETE (WORKSHOP RADIAL MENU)
  • STARTING POSITION RULE
  • MAIN PANEL AND SUBPANELS
  • RADIAL WORKSHOP MENU

Missions

12
  • FUEL (ENERGY)
  • ENVIRONMENTAL THINGS
  • BAD THINGS
  • GOOD THINGS
  • TYPES OF DAMAGE
  • CYCLES
  • HEALTH
  • MISSION OBJECTIVES
  • SELECT A MISSION SCREEN
  • PUZZLE MISSIONS
  • DR. DROOG CAMPAIGN MISSIONS
  • CLASSIC MISSIONS
View Categories
  • Home
  • Docs
  • Advanced Programming
  • IF THING EQUALS

IF THING EQUALS

The If Thing Equals chip is a decision-making tool that allows your ChipWit to check if the object currently stored on the stack matches a specific type of object (such as a Pie, Wall, or Electrocrab). It acts as a condition that lets your ChipWit decide what to do based on the type of object it’s dealing with.


Specifications #

  • Argument: Pie, Coffee, Electrocrab, Bomb, Bouncer, Oil, Memory Disk, Wall, Floor, Door, Nil (Nil represents that there is nothing on the stack)
  • Creates a True or False Branch?: Yes, it does create a T/F branch
  • Number of Cycles Used: 2
  • Fuel: 1


Why the If Thing Equals Chip Matters #

  • Conditional Logic: This chip allows your ChipWit to execute different actions based on what it has encountered. For example, you can program your ChipWit to behave differently when it detects a Pie versus an Electrocrab.
  • Stack Integration: It works in tandem with the Push Thing chip, using the Thing type stored on the stack to make decisions. This allows for more complex and responsive behavior in your ChipWit’s programming.
  • Efficient Decision Making: Instead of performing actions blindly, your ChipWit can make smarter decisions by first checking what kind of object it’s interacting with, improving its efficiency and effectiveness in completing tasks.


How to Use the If Thing Equals Chip #

  • First, use the Push Thing chip to store the type of object your ChipWit has detected onto the stack.
  • Then, place the If Thing Equals chip in your program to check if that object matches a specific type (e.g., Pie).
  • If the object on the stack matches the specified type (True branch), the program will continue to the next instruction. If it doesn’t match, the program will skip the next instruction via the False branch, allowing your ChipWit to handle different objects accordingly.


Example of Use #

  • Suppose your ChipWit detects an object and stores it using the Push Thing chip.
  • You can then use the If Thing Equals chip to check if the object is a Pie. If it is, your ChipWit might execute the Pickup chip to grab the Pie. If it’s not a Pie, it could continue moving or perform a different action through the False branch.


The If Thing Equals chip is essential for adding flexibility and adaptability to your ChipWit’s programming, helping it make decisions based on its surroundings and interact more effectively with the environment.



History #

“If Thing Equals” as it appears in various historic incarnations of ChipWits!



COMMODORE 64:


MANUAL:
“Using the Compare Thing Operator, a CHIPWIT can check an argument against the top of any Stack, and branch (TRUE) if they are identical (i.e., Equal To).”



APPLE II:


MANUAL:
“COMPARE THING commands the ChipWit to examine the Thing on the top of the Thing Stack and compare it to a specified Thing. If the Things are the same, the program branches through the COMPARE THING chip’s true wire. If the Things are different, the program branches through the COMPARE THING chip’s false wire.
The Argument of the COMPARE THING chip represents the Thing you want the ChipWit to compare to the item at the top of the Thing Stack. The bottom of the Thing stack is represented the same way as the bottom of the Move Stack.”




MAC:


MANUAL:
“COMPARE THING commands the ChipWit to examine the Thing on the top of the Thing Stack and compare it to a specified Thing. If the Things are the same, the program branches through the true wire of the COMPARE THING chip. If the Things are different, the program branches through the false wire of the COMPARE THING chip. The Arguments represent the THING that you want the ChipWit to compare to the Thing at the top of the Thing stack. They are the same Things that arc the Arguments for LOOK (minus the call to the Thing Stack itself). The bottom of the Thing Stack is represented the same way as the bottom of the Move Stack.”



CHIPWITS II (WIN 95):



Related #

Updated on November 17, 2024

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest

Powered by BetterDocs

Leave a ReplyCancel reply

Table of Contents
  • Specifications
  • Why the If Thing Equals Chip Matters
  • How to Use the If Thing Equals Chip
  • Example of Use
  • History

Join Our Mailing List!

Are you interested in learning more about ChipWits and tracking our development? Provide your name and email address below to join our mailing list.
We respect your email address and don’t spam. You can unsubscribe at any time. We generally send a short email about the game once every week or two.

Check your inbox or spam folder to confirm your subscription.

Copyright © 2026 ChipWits, Inc.

  • Contact
  • Press Kit
  • Privacy Policy
  • Terms of Use
 

Loading Comments...