<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Henrique</id>
		<title>SDU - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Henrique"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Special:Contributions/Henrique"/>
		<updated>2026-09-23T07:55:38Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=User:Henrique&amp;diff=2735</id>
		<title>User:Henrique</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=User:Henrique&amp;diff=2735"/>
				<updated>2008-07-26T14:28:56Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: New page: Working with pre-sales, implementation, customization and troubleshooting of Unicenter Service Desk since 2005.  Worked with a couple others CA products like Unicenter DSM, NSM, Dashboard,...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Working with pre-sales, implementation, customization and troubleshooting of Unicenter Service Desk since 2005.&lt;br /&gt;
&lt;br /&gt;
Worked with a couple others CA products like Unicenter DSM, NSM, Dashboard, CA SupportBridge, Clarity, XOSoft, CMDB, Advantage Data Transform and so on.&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2493</id>
		<title>Troubleshooting Spell Code</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2493"/>
				<updated>2008-07-24T21:40:43Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Troubleshooting spell code always was such as a hell for me, ultil I meet bop_cmd.&lt;br /&gt;
&lt;br /&gt;
Every once in a while we need to test some kind of structure, logic or even code and we always forget a semicolon, a curly bracket and BANG Service Desk crashes and we need to debug, restart, copy code and of course, loose time.&lt;br /&gt;
&lt;br /&gt;
With bop_cmd we can run spell code with little or no impact in Service Desk.&lt;br /&gt;
&lt;br /&gt;
Of course, to run a spell file, we need the pdm_daemon_manager service to be running.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s spell file.spl  &amp;quot;spell_function in file(0, parameter1, parameter2, parameter3)&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simulate the triggering event such as Service Desk does, always send to the function a first parameter 0 (which I do not know what it is, but trust me, you need to do this), the name of the property described in the mod file, and two values, one representing the value before the trigger was fired, and one after.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* In this example, we start a spell function named ''chips'' in a spell file named ''potato.spl'', simulating the priority change from 0 to 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s potato.spl &amp;quot;chips(0, 'priority', 0, 1 )&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2492</id>
		<title>Troubleshooting Spell Code</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2492"/>
				<updated>2008-07-24T21:40:15Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Troubleshooting spell code always was such as a hell for me, ultil I meet bop_cmd.&lt;br /&gt;
&lt;br /&gt;
Every once in a while we need to test some kind of structure, logic or even code and we always forget a semicolon, a curly bracket and BANG Service Desk crashes and we need to debug, restart, copy code and of course, loose time.&lt;br /&gt;
&lt;br /&gt;
With bop_cmd we can run spell code with little or no impact in Service Desk.&lt;br /&gt;
&lt;br /&gt;
Of course, to run a spell file, we need the pdm_daemon_manager service to be running.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s spell file.spl  &amp;quot;spell_function in file(0, parameter1, parameter2, parameter3)&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simulate the triggering event such as Service Desk does, always send to the function a first parameter 0 (which I do not know what it is, but trust me, you need to do this), the name of the property described in the mod file, and two values, one representing the value before the trigger was fired, and one after.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* In this example, we start a spell function named ''chips'' in a spell file named ''potato.spl'', simulating the priority change from 0 to 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s ''potato.spl'' ''chips(0, &amp;quot;priority&amp;quot;, 0, 1 )''&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2491</id>
		<title>Troubleshooting Spell Code</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2491"/>
				<updated>2008-07-24T21:39:21Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Troubleshooting spell code always was such as a hell for me, ultil I meet bop_cmd.&lt;br /&gt;
&lt;br /&gt;
Every once in a while we need to test some kind of structure, logic or even code and we always forget a semicolon, a curly bracket and BANG Service Desk crashes and we need to debug, restart, copy code and of course, loose time.&lt;br /&gt;
&lt;br /&gt;
With bop_cmd we can run spell code with little or no impact in Service Desk.&lt;br /&gt;
&lt;br /&gt;
Of course, to run a spell file, we need the pdm_daemon_manager service to be running.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s ''spell file.spl'' ''spell_function in file(0, parameter1, parameter2, parameter3)''&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simulate the triggering event such as Service Desk does, always send to the function a first parameter 0 (which I do not know what it is, but trust me, you need to do this), the name of the property described in the mod file, and two values, one representing the value before the trigger was fired, and one after.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* In this example, we start a spell function named ''chips'' in a spell file named ''potato.spl'', simulating the priority change from 0 to 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s ''potato.spl'' ''chips(0, &amp;quot;priority&amp;quot;, 0, 1 )''&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2490</id>
		<title>Troubleshooting Spell Code</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2490"/>
				<updated>2008-07-24T21:38:43Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Troubleshooting spell code always was such as a hell for me, ultil I meet bop_cmd.&lt;br /&gt;
&lt;br /&gt;
Every once in a while we need to test some kind of structure, logic or even code and we always forget a semicolon, a curly bracket and BANG Service Desk crashes and we need to debug, restart, copy code and of course, loose time.&lt;br /&gt;
&lt;br /&gt;
With bop_cmd we can run spell code with little or no impact in Service Desk.&lt;br /&gt;
&lt;br /&gt;
Of course, to run a spell file, we need the pdm_daemon_manager service to be running.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
bop_cmd -s ''spell file.spl'' ''spell_function in file(0, parameter1, parameter2, parameter3)''&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simulate the triggering event such as Service Desk does, always send to the function a first parameter 0 (which I do not know what it is, but trust me, you need to do this), the name of the property described in the mod file, and two values, one representing the value before the trigger was fired, and one after.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* In this example, we start a spell function named ''chips'' in a spell file named ''potato.spl'', simulating the priority change from 0 to 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
bop_cmd -s ''potato.spl'' ''chips(0, &amp;quot;priority&amp;quot;, 0, 1 )''&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2489</id>
		<title>Troubleshooting Spell Code</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Troubleshooting_Spell_Code&amp;diff=2489"/>
				<updated>2008-07-24T21:37:31Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: New page: __NOTOC__ == Introduction == Troubleshooting spell code always was such as a hell for me, ultil I meet bop_cmd.  Every once in a while we need to test some kind of structure, logic or even...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Troubleshooting spell code always was such as a hell for me, ultil I meet bop_cmd.&lt;br /&gt;
&lt;br /&gt;
Every once in a while we need to test some kind of structure, logic or even code and we always forget a semicolon, a curly bracket and BANG Service Desk crashes and we need to debug, restart, copy code and of course, loose time.&lt;br /&gt;
&lt;br /&gt;
With bop_cmd we can run spell code with little or no impact in Service Desk.&lt;br /&gt;
&lt;br /&gt;
Of course, to run a spell file, we need the pdm_daemon_manager service to be running.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
bop_cmd -s ''spell file.spl'' ''spell_function in file(0, parameter1, parameter2, parameter3)''&lt;br /&gt;
&lt;br /&gt;
To simulate the triggering event such as Service Desk does, always send to the function a first parameter 0 (which I do not know what it is, but trust me, you need to do this), the name of the property described in the mod file, and two values, one representing the value before the trigger was fired, and one after.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* In this example, we start a spell function named ''chips'' in a spell file named ''potato.spl'', simulating the priority change from 0 to 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
bop_cmd -s ''potato.spl'' ''chips(0, &amp;quot;priority&amp;quot;, 0, 1 )''&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Spel_Reference_Guide&amp;diff=2488</id>
		<title>Spel Reference Guide</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Spel_Reference_Guide&amp;diff=2488"/>
				<updated>2008-07-24T21:29:38Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Reference Sections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Customization]]&lt;br /&gt;
=What Is Spel=&lt;br /&gt;
Spel is CA proprietary code used to script Service Desk core operations. Spel coding is found a .spl and .maj files located in [[$NX_ROOT]]\bopcfg\majic and [[$NX_ROOT]]\site\mods\majic directories. Other examples can be found in the [[$NX_ROOT]]\samples directory.&lt;br /&gt;
&lt;br /&gt;
Note: .spl files with a ''pcd'' proceeding the .spl are encrypted files, such as chgpcd.spl or itilpcd.spl.&lt;br /&gt;
&lt;br /&gt;
== Reference Sections ==&lt;br /&gt;
*[[Errors]]&lt;br /&gt;
**[[Troubleshooting]]&lt;br /&gt;
*[[Functions]]&lt;br /&gt;
**[[format]]&lt;br /&gt;
**[[getenv]]&lt;br /&gt;
**[[now]]&lt;br /&gt;
**[[sindex]]&lt;br /&gt;
**[[workshift_abs2work]]&lt;br /&gt;
**[[workshift_work2abs]]&lt;br /&gt;
*[[Operators]]&lt;br /&gt;
**[[Arithmetic Operators]]&lt;br /&gt;
**[[Comparison Operators]]&lt;br /&gt;
**[[Concatenation Operators]]&lt;br /&gt;
**[[Logical Operators]]&lt;br /&gt;
*[[Statements]]&lt;br /&gt;
**[[if]]&lt;br /&gt;
**[[for]]&lt;br /&gt;
**[[while]]&lt;br /&gt;
*[[Variables and Types]]&lt;br /&gt;
*[[Data Type Conversion]]&lt;br /&gt;
*[[Triggering Reaction]]&lt;br /&gt;
*[[Spel FAQ]]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[WSSIWYG]] by Nero Le Velu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Spel_Reference_Guide&amp;diff=2487</id>
		<title>Spel Reference Guide</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Spel_Reference_Guide&amp;diff=2487"/>
				<updated>2008-07-24T21:28:47Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Reference Sections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Customization]]&lt;br /&gt;
=What Is Spel=&lt;br /&gt;
Spel is CA proprietary code used to script Service Desk core operations. Spel coding is found a .spl and .maj files located in [[$NX_ROOT]]\bopcfg\majic and [[$NX_ROOT]]\site\mods\majic directories. Other examples can be found in the [[$NX_ROOT]]\samples directory.&lt;br /&gt;
&lt;br /&gt;
Note: .spl files with a ''pcd'' proceeding the .spl are encrypted files, such as chgpcd.spl or itilpcd.spl.&lt;br /&gt;
&lt;br /&gt;
== Reference Sections ==&lt;br /&gt;
*[[Errors]]&lt;br /&gt;
*[[Functions]]&lt;br /&gt;
**[[format]]&lt;br /&gt;
**[[getenv]]&lt;br /&gt;
**[[now]]&lt;br /&gt;
**[[sindex]]&lt;br /&gt;
**[[workshift_abs2work]]&lt;br /&gt;
**[[workshift_work2abs]]&lt;br /&gt;
*[[Operators]]&lt;br /&gt;
**[[Arithmetic Operators]]&lt;br /&gt;
**[[Comparison Operators]]&lt;br /&gt;
**[[Concatenation Operators]]&lt;br /&gt;
**[[Logical Operators]]&lt;br /&gt;
*[[Statements]]&lt;br /&gt;
**[[if]]&lt;br /&gt;
**[[for]]&lt;br /&gt;
**[[while]]&lt;br /&gt;
*[[Variables and Types]]&lt;br /&gt;
*[[Data Type Conversion]]&lt;br /&gt;
*[[Triggering Reaction]]&lt;br /&gt;
*[[Spel FAQ]]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[WSSIWYG]] by Nero Le Velu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=While&amp;diff=2486</id>
		<title>While</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=While&amp;diff=2486"/>
				<updated>2008-07-24T21:27:19Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
A &amp;quot;while&amp;quot; loop performs a set of commands for each iteration of the loop.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
while (''condition'')&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
    int i;&lt;br /&gt;
    &lt;br /&gt;
    i = 0;    &lt;br /&gt;
    &lt;br /&gt;
    while( i &amp;lt; 10 ) {&lt;br /&gt;
        &lt;br /&gt;
        printf(&amp;quot;This is a test. Loop %s\n&amp;quot;, i) ;&lt;br /&gt;
        &lt;br /&gt;
        i = i + 1;&lt;br /&gt;
        &lt;br /&gt;
    } ;&lt;br /&gt;
&lt;br /&gt;
This example will iterate the loop, printing the &amp;quot;This is a test. Loop n&amp;quot; message 9 times.&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
This is a test. Loop 0&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 1&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 2&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 3&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 4&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 5&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 6&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 7&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 8&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 9&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Getenv&amp;diff=2485</id>
		<title>Getenv</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Getenv&amp;diff=2485"/>
				<updated>2008-07-24T21:26:22Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Description ==&lt;br /&gt;
Gets the value of an environment variable&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
getenv (''&amp;quot;string&amp;quot;'')&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* Getting the value of the PATH environment variable and putting it into the variable &amp;quot;result&amp;quot;.&lt;br /&gt;
 string result;&lt;br /&gt;
 result = getenv(&amp;quot;Path&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
This func will return the string value of the environment variable defined informed in string&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=While&amp;diff=2484</id>
		<title>While</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=While&amp;diff=2484"/>
				<updated>2008-07-24T21:24:52Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
A &amp;quot;while&amp;quot; loop performs a set of commands for each iteration of the loop.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
while (''condition'')&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
    int i;&lt;br /&gt;
    &lt;br /&gt;
    i = 0;    &lt;br /&gt;
    &lt;br /&gt;
    while( i &amp;lt; 10 ) {&lt;br /&gt;
        &lt;br /&gt;
        printf(&amp;quot;This is a test. Loop %s\n&amp;quot;, i) ;&lt;br /&gt;
        &lt;br /&gt;
        i = i + 1;&lt;br /&gt;
        &lt;br /&gt;
    } ;&lt;br /&gt;
&lt;br /&gt;
This example will iterate the loop, printing the &amp;quot;This is a test. Loop n&amp;quot; message 9 times.&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
This is a test. Loop 0&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 1&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 2&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 3&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 4&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 5&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 6&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 7&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 8&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 9&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=While&amp;diff=2483</id>
		<title>While</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=While&amp;diff=2483"/>
				<updated>2008-07-24T21:24:32Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
A &amp;quot;while&amp;quot; loop performs a set of commands for each iteration of the loop.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
while (''condition'')&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
    int i;&lt;br /&gt;
    &lt;br /&gt;
    i = 0;    &lt;br /&gt;
    &lt;br /&gt;
    while( i &amp;lt; 10 ) {&lt;br /&gt;
        &lt;br /&gt;
        printf(&amp;quot;This is a test. Loop %s\n&amp;quot;, i) ;&lt;br /&gt;
        &lt;br /&gt;
        i = i + 1;&lt;br /&gt;
        &lt;br /&gt;
    } ;&lt;br /&gt;
&lt;br /&gt;
This example will iterate the loop, printing the &amp;quot;This is a test. Loop n&amp;quot; message 9 times.&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
This is a test. Loop 0&amp;lt;BR&amp;gt;&lt;br /&gt;
This is a test. Loop 1&lt;br /&gt;
This is a test. Loop 2&lt;br /&gt;
This is a test. Loop 3&lt;br /&gt;
This is a test. Loop 4&lt;br /&gt;
This is a test. Loop 5&lt;br /&gt;
This is a test. Loop 6&lt;br /&gt;
This is a test. Loop 7&lt;br /&gt;
This is a test. Loop 8&lt;br /&gt;
This is a test. Loop 9&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=While&amp;diff=2482</id>
		<title>While</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=While&amp;diff=2482"/>
				<updated>2008-07-24T21:23:34Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: New page: == Description == A &amp;quot;while&amp;quot; loop performs a set of commands for each iteration of the loop.  == Usage == while (''condition'')  == Examples ==      int i;          i = 0;              whil...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
A &amp;quot;while&amp;quot; loop performs a set of commands for each iteration of the loop.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
while (''condition'')&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
    int i;&lt;br /&gt;
    &lt;br /&gt;
    i = 0;    &lt;br /&gt;
    &lt;br /&gt;
    while( i &amp;lt; 10 ) {&lt;br /&gt;
        &lt;br /&gt;
        printf(&amp;quot;This is a test. Loop %s\n&amp;quot;, i) ;&lt;br /&gt;
        &lt;br /&gt;
        i = i + 1;&lt;br /&gt;
        &lt;br /&gt;
    } ;&lt;br /&gt;
&lt;br /&gt;
This example will iterate the loop, printing the &amp;quot;This is a test. Loop n&amp;quot; message 9 times.&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
This is a test. Loop 0&lt;br /&gt;
This is a test. Loop 1&lt;br /&gt;
This is a test. Loop 2&lt;br /&gt;
This is a test. Loop 3&lt;br /&gt;
This is a test. Loop 4&lt;br /&gt;
This is a test. Loop 5&lt;br /&gt;
This is a test. Loop 6&lt;br /&gt;
This is a test. Loop 7&lt;br /&gt;
This is a test. Loop 8&lt;br /&gt;
This is a test. Loop 9&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Spel_Reference_Guide&amp;diff=2481</id>
		<title>Spel Reference Guide</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Spel_Reference_Guide&amp;diff=2481"/>
				<updated>2008-07-24T21:20:50Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Reference Sections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Customization]]&lt;br /&gt;
=What Is Spel=&lt;br /&gt;
Spel is CA proprietary code used to script Service Desk core operations. Spel coding is found a .spl and .maj files located in [[$NX_ROOT]]\bopcfg\majic and [[$NX_ROOT]]\site\mods\majic directories. Other examples can be found in the [[$NX_ROOT]]\samples directory.&lt;br /&gt;
&lt;br /&gt;
Note: .spl files with a ''pcd'' proceeding the .spl are encrypted files, such as chgpcd.spl or itilpcd.spl.&lt;br /&gt;
&lt;br /&gt;
== Reference Sections ==&lt;br /&gt;
*[[Errors]]&lt;br /&gt;
*[[Functions]]&lt;br /&gt;
*[[Operators]]&lt;br /&gt;
**[[Arithmetic Operators]]&lt;br /&gt;
**[[Comparison Operators]]&lt;br /&gt;
**[[Concatenation Operators]]&lt;br /&gt;
**[[Logical Operators]]&lt;br /&gt;
*[[Statements]]&lt;br /&gt;
**[[if]]&lt;br /&gt;
**[[for]]&lt;br /&gt;
**[[while]]&lt;br /&gt;
*[[Variables and Types]]&lt;br /&gt;
*[[Data Type Conversion]]&lt;br /&gt;
*[[Triggering Reaction]]&lt;br /&gt;
*[[Spel FAQ]]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[WSSIWYG]] by Nero Le Velu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Getenv&amp;diff=2479</id>
		<title>Getenv</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Getenv&amp;diff=2479"/>
				<updated>2008-07-24T20:50:41Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Description ==&lt;br /&gt;
Gets the value of an environment variable&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
getenv (''&amp;quot;string&amp;quot;'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
This func will return the string value of the environment variable defined informed in string&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* Getting the value of the PATH environment variable and putting it into the variable &amp;quot;result&amp;quot;.&lt;br /&gt;
 string result;&lt;br /&gt;
 result = getenv(&amp;quot;Path&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Getenv&amp;diff=2478</id>
		<title>Getenv</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Getenv&amp;diff=2478"/>
				<updated>2008-07-24T20:49:58Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: New page: __NOTOC__ == Description == Gets the value of an environment variable  == Usage == getenv (''&amp;quot;string&amp;quot;'')   == Results == This func will return the string value of the environment variable ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
== Description ==&lt;br /&gt;
Gets the value of an environment variable&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
getenv (''&amp;quot;string&amp;quot;'')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
This func will return the string value of the environment variable defined informed in string&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* Pushing the results of sindex into a variable (matching a string in another variable)&lt;br /&gt;
 string result;&lt;br /&gt;
 result = getenv(&amp;quot;Path&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div align='center'&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;To make corrections or additions to this article, select the ''edit'' tab above.&amp;lt;br&amp;gt;&lt;br /&gt;
To discuss or ask questions about this article, select the ''discussion'' tab above.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Now&amp;diff=2476</id>
		<title>Now</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Now&amp;diff=2476"/>
				<updated>2008-07-24T20:44:22Z</updated>
		
		<summary type="html">&lt;p&gt;Henrique: New page: now()  returns a date and time string, which can be converted to a date and time var&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;now()&lt;br /&gt;
&lt;br /&gt;
returns a date and time string, which can be converted to a date and time var&lt;/div&gt;</summary>
		<author><name>Henrique</name></author>	</entry>

	</feed>