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 .EXIT Command

Syntax: .EXIT

This command stops the DI from parsing any further commands or outputting any remaining HTML within a given .shtml file. It is most useful when you are handling an error condition which should prevent the rest of your code from being executed.

When using this command, you have to be careful to clean up after any unclosed tags. In the example below, the </FONT></P></BLOCKQUOTE> tags are included, to close the tags which produce the green color and indentation of the example's output. If these are not included, the browser displays the output incorrectly.

<!--.cgivars-->          <!--read form variables-->
<!--.ifndef somevar-->
  <!--.echo "You did not supply a value for somevar"-->
  <!--.echo "</FONT></P></BLOCKQUOTE>"-->
  <!--.exit-->
<!--.endif-->

<!--.echo "You supplied $somevar for somevar"-->

You did not supply a value for somevar

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

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 © 2001 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on December 7, 2001.