File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / doc / mpd57.html
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:44:30 2013 UTC (11 years, 5 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_7p0, v5_7, HEAD
5.7

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Variables</TITLE>
</HEAD>
<BODY text="#000000" bgcolor="#ffffff">

<A HREF="mpd.html"><EM>Mpd 5.7 User Manual</EM></A>
 <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
 <b>:</b> <EM>Variables</EM><BR>
<b>Previous:</b> <A HREF="mpd56.html"><EM>Special sets and targets</EM></A><BR>
<b>Next:</b> <A HREF="mpd58.html"><EM>Special variables</EM></A>


<HR NOSHADE>
  <H2><A NAME="57"></A>6.4. Variables</H2>
<p><b>Variables</b> hold simple strings. They are global and come
in two types: <b>temporary</b> and <b>permanent</b>. Permanent
variables persist over multiple invocations of the chat script,
while temporary variables are forgotten each time the script
completes.</p>
<p>Variables are specified with a dollar sign, then a letter, followed
by letters, digits, and underscores. If the first letter is upper
case the variable is permanent; otherwise it is temporary. The
variable name may be optionally enclosed in curly braces.</p>
<p>Examples:
<blockquote><code>
<pre>
$initString
$My_variable_234
${i_am_safely_followed_by_a_letter}
</pre>
</code></blockquote>
</p>

<H3>6.4.1. <A HREF="mpd58.html#58">Special variables</A></H3>
 <HR NOSHADE>
<A HREF="mpd.html"><EM>Mpd 5.7 User Manual</EM></A>
 <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
 <b>:</b> <EM>Variables</EM><BR>
<b>Previous:</b> <A HREF="mpd56.html"><EM>Special sets and targets</EM></A><BR>
<b>Next:</b> <A HREF="mpd58.html"><EM>Special variables</EM></A>



</BODY>
</HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>