<html><!-- #BeginTemplate "/Templates/BookLayout.dwt" --><!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>Types of Arguments</title>
<!-- #EndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.sheet1 {  font-family: Arial, Helvetica, sans-serif; clip:     rect(   ); text-indent: 10pt}
.header {  font-family: Arial, Helvetica, sans-serif; font-size: medium; font-weight: bold; clip:   rect(   )}
.code {  font-family: "Courier New", Courier, mono; padding-left: 20px}
.list {  font-family: Verdana, Arial, Helvetica, sans-serif}
.command {  font-weight: bold; font-family: "Courier New", Courier, mono; text-transform: uppercase}
-->
</style>
</head>

<body bgcolor="#FFFFFF" class="sheet1">
<!-- #BeginEditable "Header" --> 
<p class="header">Types of Arguments</p>
<!-- #EndEditable --> 
<table width="100%" border="0" height="25">
  <tr> 
    <td width="33%"><!-- #BeginEditable "Previous Page" --><a href="whatisiptscrae.html">What 
      is Iptscrae?</a><!-- #EndEditable --></td>
    <td> 
      <div align="center"><!-- #BeginLibraryItem "/Library/TOC Link.lbi" --><a href="../index.html">Table of Contents</a><!-- #EndLibraryItem --></div>
    </td>
    <td> 
      <div align="right"><!-- #BeginEditable "Next Page" --><a href="convertatoi.html">Converting 
        Numbers &amp; Strings</a><!-- #EndEditable --></div>
    </td>
  </tr>
</table>
<hr>
<!-- #BeginEditable "Body" --> 
<p>Fortunately for us, there are not many types of arguments that iptscrae can 
  deal with. The two we will use for the most part are numbers and strings. The 
  use for numbers is fairly obvious, but how can I use string in iptscrae and 
  what would I be tying up with that string anyway?</p>
<p>Well the term string has nothing to do with the string you tie things up with. 
  String is a hold over from many years ago when only pure computer geeks wrote 
  programs. String refers to a string of characters, such as my name, Steve. To 
  specify a string, you put it in quotes, such as &quot;Steve&quot;</p>
<p>There are many commands that operate on strings, but one of the most used is 
  <span class="command">say</span><b>. </b>The<b> </b><span class="command">say</span> 
  command takes one argument, a string and speaks it, as if you had typed it in 
  to the chat box and pressed return. Remember our example from the &quot;What 
  is scripting?&quot; page?</p>
<p class="code">&quot;Hello!&quot; <span class="command">say</span></p>
<p>Does this make a little more sense the second time around? First, the string 
  &quot;Hello!&quot; is pushed onto the stack (just like a number!) and then the 
  <span class="command">say</span> command is executed. <span class="command">say</span> 
  pops off the top value, hoping its a string and if it is, it says it to the 
  room. What if the argument on the top of the stack is a number? In this case, 
  you would see a error message in your log window.</p>
<p>Is that all of the types available? No. There are arrays, which you can think 
  of as lists of arguments, there are atoms, which are a fancy term for a script 
  inside of a script and a few others. For now, we're only going to be using numbers 
  and strings.</p>
<p class="sheet1">&nbsp;</p>
<!-- #EndEditable --> 
<hr>
<table width="100%" border="0" height="25">
  <tr> 
    <td width="33%"><!-- #BeginEditable "Previous Page 2" --><a href="whatisiptscrae.html">What 
      is Iptscrae?</a><!-- #EndEditable --></td>
    <td> 
      <div align="center"><!-- #BeginLibraryItem "/Library/TOC Link.lbi" --><a href="../index.html">Table of Contents</a><!-- #EndLibraryItem --></div>
    </td>
    <td> 
      <div align="right"><!-- #BeginEditable "Next Page 2" --><a href="convertatoi.html">Converting 
        Numbers &amp; Strings</a><!-- #EndEditable --></div>
    </td>
  </tr>
</table>
<p align="center"><i>Last Updated on <!-- #BeginEditable "TheDate" --><i>03/08/2000</i><!-- #EndEditable --></i>
</body>
<!-- #EndTemplate --></html>
