Difference between revisions of "Operator"

From WikiManual
Jump to: navigation, search
m
(Operators:: i hereby banish sysvars from operators and declare that they are none!)
Line 14: Line 14:
 
{{Advanced Commands}}
 
{{Advanced Commands}}
 
||
 
||
<div class="boilerplate metadata" id="sfd-c" style="margin: 0 5%; padding: 0 7px 7px 7px; background:#7985c4; border: 1px solid #aaa; text-align: left; font-size:95%;">
 
{| border="0" style=background:#7985c4;
 
|-
 
===[[Sysvars]]:===
 
:[[Movement]]
 
:[[Shooting]]
 
:[[Reproducing]]
 
:...
 
|}
 
</div>
 
 
 
{{Logical Comparison Operators}}
 
{{Logical Comparison Operators}}
  

Revision as of 23:06, 23 December 2005

Anything you're likely to see in Robot DNA.

Operators:

Flow Commands:

cond
start else
stop
end

Store Commands:

store
inc dec

The following commands are not supported in versions earlier 2.46:

addstore
substore
multstore
divstore
ceilstore
floorstore
rndstore
sgnstore
abstore
sqrstore
negstore

Basic Commands:

add & sub
mult & div
rnd
*
mod
sgn
abs

Advanced Commands:

angle
dist
ceil
floor
sqr pow
pyth

The following commands are not supported in versions earlier 2.46:

anglecmp
root
logx
sin
cos

Logical Comparison Operators:

> <
>= <=
= !=
%= !%=
~= !~=

Logic:

true
false
and
or
not
xor

Template:Bitwise Operators