Difference between revisions of "Operator"

From WikiManual
Jump to: navigation, search
Line 3: Line 3:
 
Operators you're likely to see in [[Robot DNA]]:
 
Operators you're likely to see in [[Robot DNA]]:
  
<math>Update for version 2.46 on 10/26/2013 by Botsareus</math>
+
Update for version 2.46 on 10/26/2013 by Botsareus
  
 
==Operators:==
 
==Operators:==

Revision as of 11:14, 26 October 2013


Operators you're likely to see in Robot DNA:

Update for version 2.46 on 10/26/2013 by Botsareus

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

Bitwise Command:

~ Complement
& AND
| OR
^ XOR
++ increment stack value
-- deincrement stack value
- negate stack value
<< bit shift left
>> bit shift right

Data is stored in Sysvars.