Differences
This shows you the differences between two versions of the page.
|
|
clips:clip6bos [2010/01/04 19:47] |
clips:clip6bos [2010/01/04 19:47] (current) |
| |
| <HTML> |
| <HEAD> |
| <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"> |
| <TITLE>DEFGLOBAL</TITLE> |
| </HEAD> |
| |
| <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> |
| |
| <OBJECT TYPE="application/x-oleobject" CLASSID="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e"> |
| <PARAM NAME="Keyword" VALUE="DEFGLOBAL"> |
| </OBJECT> |
| |
| <H1><A NAME="defglobal"></A>DEFGLOBAL</H1> |
| |
| <P></P> |
| |
| <P>With the defglobal construct, global variables can be defined, set, and </P> |
| |
| <P>accessed within the CLIPS environment. Global variables can be accessed </P> |
| |
| <P>as part of the pattern matching process, but changing them does not invoke </P> |
| |
| <P>the pattern matching process. The bind function is used to set the value </P> |
| |
| <P>of global variables.</P> |
| |
| <P>The syntax of the defglobal construct is:</P> |
| |
| <PRE><CODE><defglobal-construct> ::= (defglobal [<defmodule-name>] |
| <global-assignment>*) |
| |
| <global-assignment> ::= <global-variable> = <expression> |
| |
| <global-variable> ::= ?*<symbol>*</CODE></PRE> |
| |
| </BODY> |
| </HTML> |
| |