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

IF NUMBER EQUALS

The If Number Equals chip compares the number currently at the top of the stack to a specified value. If the number matches the value you’ve entered, the ChipWit will proceed with the next instruction in the sequence. If it doesn’t match, the ChipWit will skip the next instruction.

The Arguments represent the value that you want the ChipWit to compare to the value at the top of the Number Stack (which are 0-7, the meters and range finder)


Specifications #

  • Argument: Numbers 0-7, Damage Register, Range Register, Fuel Register, Nil (Nil represents there is nothing in 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 Number Equals Chip Matters #

  • Conditional Logic: This chip allows your ChipWit to make decisions based on numerical values, enabling more complex and dynamic behavior.
  • Stack Comparisons: It uses numbers stored on the stack, which means you can push different values to the stack and check them against different criteria.
  • Flow Control: This chip is particularly useful for controlling loops, counters, or checking for specific conditions within your ChipWit’s program.


How to Use the If Number Equals Chip #

  • First, push a number onto the stack using the Push Number chip or another stack operation like Increment or Decrement.
  • Place the If Number Equals chip in your program and specify the number you want to compare against (e.g., 5).
  • When executed, the ChipWit checks if the top number on the stack matches the number you specified. If true, it will proceed with the next instruction. If false, it will skip the next instruction and move on.


Example of Use #

  • Let’s say you’re controlling how many pies your ChipWit collects. You push the number 5 to the stack using Push Number.
  • You use If Number Equals 5 to check if your ChipWit has collected 5 pies.
  • If the number on the stack equals 5, the ChipWit will proceed with collecting more pies. If not, it might execute the true connector or the false connector, like skating to a new room.


The If Number Equals chip allows your ChipWit to adapt its behavior based on specific conditions, adding flexibility and depth to its programming logic.



History #

“If Number Equal” as it appears in various historic incarnations of ChipWits!


COMMODORE 64:


MANUAL:
“Using the Compare Number 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 NUMBER: EQUAL? commands the ChipWit to examine the value on the top of the Number Stack and compare it to a specified value. If the values are the same (equal), the program branches through the COMPARE NUMBER: EQUAL? chip’s true wire. If the values are different, the program branches through the COMPARE NUMBER: EQUAL? chip’s false wire.
The Arguments represent the value you want the ChipWit to compare to the value at the top of the Number Stack. They are the values 0 through 7 (as represented by the beakers), the value from the Fuel and Damage Meters, the current reading from the Range Finder, and the bottom of the Number Stack (represented by the empty square).”




MAC:


MANUAL:
“COMPARE NUMBER: EQUAL? commands the ChipWit to examine the value on the top of the Number Stack and compare it to a specified value, if the values arc the same (equal), the program branches through the true wire of the COMPARE NUMBER: EQUAL? chip. If the values are different, the program branches through the false wire of the COMPARE NUMBER: EQUAL? chip.
The Arguments represent the value that you want the ChipWit to compare to the value at the top of the Number Stack. They are the values 0 through 7 (as represented by the beakers), the value from the Fuel and Damage Meters, the current reading from the Range Finder, and the bottom of the Number Stack (represented by the empty square)”.




CHIPWITS II (WIN 95):


Related #

Updated on November 17, 2024

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
PUSH NUMBERIF NUMBER IS LESS THAN

Powered by BetterDocs

Leave a ReplyCancel reply

Table of Contents
  • Specifications
  • Why the If Number Equals Chip Matters
  • How to Use the If Number 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...