[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.4.11 Display Variable Value ($S)

The Display Variable Value command displays the value of a Cogsys variable. It works in any video mode.

The value is written at the current cursor position (and, in the case of the graphics modes, with the current text attributes).

Name:
Display Variable Value
Class:
Display Text
Code:
$S
Syntax:
$Svref
vref is a variable reference
System:
Displays the value of the Cogsys variable specified by vref.
Requires:
This command will work in any video mode.
History:
Older versions of Cogsys allowed whitespace before vref. This is inconsistent with Cogsys 3 syntax has been removed.

Test Files:
`DVAR_T01.IN'
tests basic operation

Examples:

input
$AV25=100$SV25
cogsys
Sets the value of Cogsys variable 25 to 100, and then displays it.



This document was generated by Usman Muzaffar on June, 28 2000 using texi2html