File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / doc / mpd57.html
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:39:23 2021 UTC (3 years, 7 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, HEAD
mpd 5.9

    1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    2: <HTML>
    3: <HEAD>
    4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    5: <TITLE>Variables</TITLE>
    6: </HEAD>
    7: <BODY text="#000000" bgcolor="#ffffff">
    8: 
    9: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
   10:  <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
   11:  <b>:</b> <EM>Variables</EM><BR>
   12: <b>Previous:</b> <A HREF="mpd56.html"><EM>Special sets and targets</EM></A><BR>
   13: <b>Next:</b> <A HREF="mpd58.html"><EM>Special variables</EM></A>
   14: 
   15: 
   16: <HR NOSHADE>
   17:   <H2><A NAME="57"></A>6.4. Variables</H2>
   18: <p><b>Variables</b> hold simple strings. They are global and come
   19: in two types: <b>temporary</b> and <b>permanent</b>. Permanent
   20: variables persist over multiple invocations of the chat script,
   21: while temporary variables are forgotten each time the script
   22: completes.</p>
   23: <p>Variables are specified with a dollar sign, then a letter, followed
   24: by letters, digits, and underscores. If the first letter is upper
   25: case the variable is permanent; otherwise it is temporary. The
   26: variable name may be optionally enclosed in curly braces.</p>
   27: <p>Examples:
   28: <blockquote><code>
   29: <pre>
   30: $initString
   31: $My_variable_234
   32: ${i_am_safely_followed_by_a_letter}
   33: </pre>
   34: </code></blockquote>
   35: </p>
   36: 
   37: <H3>6.4.1. <A HREF="mpd58.html#58">Special variables</A></H3>
   38:  <HR NOSHADE>
   39: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
   40:  <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
   41:  <b>:</b> <EM>Variables</EM><BR>
   42: <b>Previous:</b> <A HREF="mpd56.html"><EM>Special sets and targets</EM></A><BR>
   43: <b>Next:</b> <A HREF="mpd58.html"><EM>Special variables</EM></A>
   44: 
   45: 
   46: 
   47: </BODY>
   48: </HTML>

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