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 DIRECTION EQUALS

IF DIRECTION EQUALS

The If Direction Equals chip is used to check the current direction your ChipWit is facing. It allows your ChipWit to make decisions based on its orientation in the environment, which is critical for navigation and controlling movement.


Specifications #

  • Argument: Forward, Backward, Left, Right, Nil (nil means 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


How It Works #

  • When the ChipWit reaches the If Direction Equals chip, it checks the direction on the top of the Move stack.
  • You provide an argument (such as Forward, Backwards, Right, or Left) to compare the current direction with.
  • If the directions are the same, the program executes through its True branch.
  • If the direction is NOT the same, the program executes through its False branch.

If Direction Equals commands the ChipWit to examine the move on the top of the Move Stack and compare it to a specified move (the Argument).

If the moves are the same, the program executes through the true branch of the If Direction Equals chip.
If the moves are different, the program executes through the False branch of the If Direction Equals chip.

The Arguments represent the move that you want the ChipWit to compare to the move at the top of the Move Stack. They are the four directional arrows and the empty square (NIL — the bottom of the Stack). The empty square represents the bottom of the Move Stack. If the Move Stack is empty, and you use this Argument, the chip will execute through its true branch.


Why It Matters #

The If Direction Equals chip is crucial for controlling precise movement and actions. By checking the ChipWit’s orientation, you can fine-tune how it interacts with its environment, ensuring it makes the right moves and performs actions at the right time. This is especially important in complex mazes or missions where direction matters.



History #

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

COMMODORE 64:


MANUAL:
“Using the Compare Thing, Compare Move, and Compare Number Operators, 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 MOVE commands the ChipWit to examine the move on the top of the Move Stack and compare it to a specified move.
If the moves are the same, the program branches through the COMPARE MOVE chip’s true wire. If the moves are different, the program branches through the COMPARE MOVE chip’s false wire.
The Argument of the COMPARE MOVE chip represents the move you want the ChipWit to compare to the move at the top of the Move Stack. They are the four directional arrows and the empty square. The empty square represents the bottom of the Move Stack. If the Move Stack is empty, and you use this Argument, the chip will branch through its true wire.”




MAC:


MANUAL:
“COMPARE MOVE commands the ChipWit to examine the move on the top of the Move Stack and compare it to a specified move (the Argument). If the moves are the same, the program branches through the true wire of the COMPARE MOVE chip.
If the moves are different, the program branches through the false wire of the COMPARE MOVE chip.
The Arguments represent the move that you want the ChipWit to compare to the move at the top of the Move Stack. They are the four directional arrows and the empty square. The empty square represents the bottom of the Move Stack. If the Move Stack is empty, and you use this Argument, the chip will branch through its true wire.”




CHIPSWITS 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
  • How It Works
  • Why It Matters
  • 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...