File: node68.html

package info (click to toggle)
dotfile-doc 2.0-1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 616 kB
  • ctags: 690
  • sloc: makefile: 31; tcl: 22
file content (42 lines) | stat: -rw-r--r-- 2,453 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
<!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Odds and Ends</TITLE>
<META NAME="description" CONTENT="Odds and Ends">
<META NAME="keywords" CONTENT="dotdotfiles">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="dotdotfiles.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" LANG="EN">
 <a href="index.html"><img align=right border=0 src=Graphics/gray-g3.gif></a><A NAME="tex2html934" HREF="node69.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="Graphics/next_motif.gif"></A> <A NAME="tex2html932" HREF="dotdotfiles.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="Graphics/up_motif.gif"></A> <A NAME="tex2html926" HREF="node67.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="Graphics/previous_motif.gif"></A> <A NAME="tex2html936" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="Graphics/contents_motif.gif"></A>  <BR>
<B> Next:</B> <A NAME="tex2html935" HREF="node69.html">Exercise</A>
<B>Up:</B> <A NAME="tex2html933" HREF="dotdotfiles.html">   dotdot files</A>
<B> Previous:</B> <A NAME="tex2html927" HREF="node67.html">Protected Variable Names</A>
<BR> <HR> <P>
<H1><A NAME="SECTION000130000000000000000">Odds and Ends</A></H1>
<P>
In this section I will itemize some of the caveats of the dotdotfiles.
<UL><LI> You may not enable an element of an ExtEntry which has been
    disabled.<LI> The Dotfile Generator has a function called <tt>pick</tt>, which makes it
    easyer for the user to write code, which is of the following form:
<PRE>  if {$test == &quot;YES&quot;} {
    print &quot;Test was true&quot;
  } else {
    print &quot;Test was false&quot;
  }</PRE> 
    The <tt>pick</tt> takes three arguments, the first is a truth
    expression, the second is a string to return, if the truth value is true,
    and the third is a string to return if the string is false. The
    example above can be rewritten to the following using the
    <tt>pick</tt> function:
<PRE>  print &quot;Test was [pick {$test == {YES}} true false]&quot;</PRE>
<P>
</UL><BR> <HR>
<P><ADDRESS>
<a href="http://www.imada.ou.dk/~blackie/">Jesper Kj&aelig;r Pedersen</a> &lt;<a href="mailto:blackie@imada.ou.dk">blackie@imada.ou.dk</a>&gt;<BR>
Wed Oct  2 13:29:53 MET DST 1996
</ADDRESS>
</BODY>
</HTML>