[Next] [Prev] [Right] [Left] [Up] [Index] [Root]
Interactive Input

Interactive Input

read identifier;
read identifier, prompt;
This statement will cause Magma to assign to the given identifier the string of characters appearing (at run-time) on the following line. This allows the user to provide an input string at run-time. If the optional prompt is given (a string), that is printed first.
readi identifier;
readi identifier, prompt;
This statement will cause Magma to assign to the given identifier the literal integer appearing (at run-time) on the following line. This allows the user to specify integer input at run-time. If the optional prompt is given (a string), that is printed first.
[Next] [Prev] [Right] [Left] [Up] [Index] [Root]