next up previous 63
Next: The Assignment Statement
Up: Getting Started
Previous: Entering Commands


The Immediate Statement

The first ICL statement we will introduce is the immediate statement. This is used to make ICL do simple calculations. It simply consists of an equals sign (=) followed by an expression, and causes the value of the expression to be printed on the terminal.
    ICL> = 1 + 2 + 3
             6
    ICL> = SQRT(2)
    1.414214
    ICL>

ICL arithmetic expressions are very similar to expressions in FORTRAN, and will be discussed in more detail later.


next up previous 63
Next: The Assignment Statement
Up: Getting Started
Previous: Entering Commands

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

9th June 1998
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council