DarwinBotsManual
Open the app EspañolES

<=

a b <= leaves true if a is less than or equal to b: like <, but the limit counts too.

Facts

Word
<=
Family
Comparisons
Integer stack
pops 2, pushes 0
Boolean stack
pops 0, pushes 1
What it does
Pops two numbers a b and pushes true if a, the lower one on the stack, is less than or equal to b. With an empty stack it gives true.
Cost
Condition
Runs
inside a gene: in the condition (cond) and in the body (start or else)

a b <= pops two numbers and pushes true if a (the lower one) is less than b (the upper one) or equal to it. 3 5 <= and 3 3 <= are true; 4 3 <= is false.

It's the one to use for caps that can be reached exactly. This bot reproduces (.repro) when it has more than 3000 energy (.nrg), but only while it is 100 cycles old or less (.robage):

' reproduces while young, if it has energy
cond
  *.nrg 3000 >
  *.robage 100 <=
start
  50 .repro store
stop

It is exactly the opposite of >: a b <= is true when a b > is false. With >= you build closed ranges.

With the integer stack empty it compares 0 with 0 and gives true. The other comparisons are in Comparisons.