ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Expressions
Operators
Precedence
Arithmetic Operators
Assignment Operator
=
Comparison Operator
Logical Operators
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Operators - =

Operator := - Assignment
Unary / binary: Binary
Prefix / infix: Infix

Input data type

Output data type

- - - - - -

Syntax:


variable_name=expression


Notes:


This operator assigns the result of an expression to a variable. You should take care to the data type, i.e. the variable should have the same data type as the expression. Otherwise implicit conversion takes place and perhaps that’s not what you want...

Unlike other programming languages you can only use one assignment per statement. So you cannot write

a=b=4;

or

x=y=sin(4)*z;