Tymless Tutorial: Reference



   
  < other commands

Assignment Operators

 
system functions >
 

Drawing

Control

Data

Reference

 

Assignment operators allow us to assign values to variables. They also return a value, e.g.

$r = $g = $b = .5   // same as $c = rgb(.5, .5, .5)
a = sin b = $pi/3   // b = $pi/3, a = sin ($pi/3)

A = B A is assigned the value of B
A += B equivalent to    A = A + B
A -= B equivalent to    A = A - B
A *= B equivalent to    A = A * B
A /= B equivalent to    A = A / B
A == B declares A to be a named constant with the value of B
   
  < other commands
 
system functions >