Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Procedural Programming >
Procedural Programming
Mathematica stands out from traditional computer languages in supporting many programming paradigms. Procedural programming is the only paradigm available in languages like C and Java, as well as most scripting languages. Mathematica supports all standard procedural programming constructs, but often extends them through integration into its more general symbolic programming environment.
x=value (Set) set the value for a variable
expr;expr;expr (CompoundExpression) execute expressions in sequence
    
=  ▪ +=  ▪ ++  ▪ *=  ▪ AppendTo  ▪ ...
Do  ▪ While  ▪ For  ▪ Table  ▪ Nest  ▪ ...
If  ▪ Which  ▪ Switch  ▪ And(&& ▪ Equal(== ▪ Less(< ▪ ...
Return  ▪ Throw  ▪ Catch  ▪ TimeConstrained  ▪ ...
Module  ▪ With  ▪ Block  ▪ ...
Print  ▪ Input  ▪ Pause  ▪ Import  ▪ OpenRead  ▪ ...
TUTORIALS
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF