next up previous 63
Next: Expressions
Up: Getting Started
Previous: The Immediate Statement


The Assignment Statement

The other commonly used statement is the assignment statement, which is exactly the same as the FORTRAN assignment statement, and is used to assign a value to a variable.
    ICL> PI = 3.1415926    
    ICL> = 2 * pi           
    6.283185
    ICL>
Note that the case of letters doesn't matter. PI and pi are the same variable.

next up previous 63
Next: Expressions
Up: Getting Started
Previous: The Immediate Statement

ICL The Interactive Command Language for ADAM
Starlink Guide 5
J A Bailey
A J Chipperfield

9th June 1998
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council