Help Search Campus Map Directories Webmail Home Alumnae Academics Admission Athletics Student Life Offices & Services Library & Technology News & Events About the College Navigation Bar
MHC Home Using the Document Interface

The .ECHO Command

Syntax: .ECHO [value]

The .ECHO command simply outputs whatever values are passed to it. Its main purpose is to insert the results of a calculation or the value of a variable into the HTML code.

Any unquoted spaces in the value are ignored.

Examples:

<!--.echo "Is there an echo in here?"-->
Is there an echo <!--.echo "in here?"-->
2+2 = <!--.echo 2 + 2-->
<!--.set name="John Jacob Jingleheimer Schmidt"-->
<!--.echo "Welcome to the home page of $name!"-->

Is there an echo in here?
Is there an echo in here?
2+2 =


Script syntax error:

>>> + <<< syntax error at EOF

.echo 2 + 2

Welcome to the home page of John Jacob Jingleheimer Schmidt!

----------------------------------------

Home | Directories | Web Email | Calendar | Campus Map | Search | Help

About the College | Admission | Academics | Student Life | Athletics
Offices & Services | Giving | News & Events | Alumnae | Library & Technology

Copyright © 1998 Mount Holyoke College. This page created by Dan Wilga and maintained by Webmaster. Last modified on March 31, 1998.