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 IS LESS THAN

IF NUMBER IS LESS THAN

The If Number Is Less Than chip compares the number currently at the top of the stack to a specified value. If the number on the stack is less than the specified value, the ChipWit will execute the next instruction. If the number is equal to or greater than the specified value, the ChipWit will skip the next instruction.


Specifications #

  • Argument: Numbers 0-7, Damage Register, Range Register, Fuel Register, Nil (nil represents 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 Number Is Less Than Chip Matters #

  • Conditional Decision Making: This chip enables your ChipWit to perform actions based on whether a number meets a specific condition of being smaller than a threshold, which is crucial for dynamic programming and decision-making.
  • Stack-Based Comparisons: It works with numbers stored on the stack, allowing you to use previously pushed numbers to guide your ChipWit’s behavior.
  • Flexible Control: Useful for scenarios where actions should only be taken when certain numerical criteria are met, such as counters or limits.


How to Use the If Number Is Less Than Chip #

  • Push a number onto the stack using the Push Number chip or other stack operations.
  • Insert the If Number Is Less Than chip in your program and specify the number you want to compare against (e.g., 7)
  • When the ChipWit executes this chip, it checks if the number on the stack is less than the specified value. If it is, the ChipWit will proceed through the True or False branch. If the number is equal to or greater, it will proceed through the True or False branch.


Example of Use #

  • Imagine you’re using a counter to track how many pies your ChipWit has collected. You push the current count (e.g., 3) to the stack.
  • You use the If Number Is Less Than 5 chip to check if the count is less than 5.
  • If the count is indeed less than 5, the ChipWit might proceed to collect more pies. If the count is 5 or more, it might execute a different instruction, like skating to a new area or performing a different task.


The If Number Is Less Than chip allows your ChipWit to make decisions and control actions based on numerical comparisons, adding more complexity and adaptability to your programming.



History #

“If Number Is Less Than” as it appears in various historic incarnations of ChipWits!



COMMODORE 64:


MANUAL:
“A special Operator, Compare Number Less Than, branches (TRUE) if the number on the Number Stack is less than the Number argument.”



APPLE II:


MANUAL:
“COMPARE NUMBER: LESS THAN? commands the ChipWit to examine the value at the top of the Number Stack and compare it to a specified value. If the value in the Number Stack is less than the specified value, the program branches through the COMPARE NUMBER: LESS THAN? chip’s true wire. If the value in the Number stack is greater than or equal to the specified value, the program branches through the COMPARE NUMBER: LESS THAN? chip’s false wire.
The Argument of the COMPARE NUMBER: LESS THAN? chip represents 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 values from the Fuel and Damage Meters, and the current reading from the Range Finder.”



MAC:


MANUAL:
“COMPARE NUMBER: LESS THAN? commands the ChipWit to examine the value at the top of the Number Stack and compare it to a specified value, if the value in the Number Stack is less than the specified value, the program branches through the true wire Of the COMPARE NUMBER: LESS THAN ? chip. If the value in the Number Stack is greater than or equal to the specified value, the program branches through the false wire of the COMPARE NUMBER: LESS THAN? chip.
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, and the current reading from the Range Finder, and the bottom of the Number Stack (represented by the empty square).”



CHIPWITS II (WIN 98):





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 Number Is Less Than Chip Matters
  • How to Use the If Number Is Less Than 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...