<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.bundysoft.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.bundysoft.com/wiki/feed.php">
        <title>BundyWiki plugins:general:zeoscript:reference:functions</title>
        <description></description>
        <link>http://www.bundysoft.com/wiki/</link>
        <image rdf:resource="http://www.bundysoft.com/wiki/lib/images/favicon.ico" />
       <dc:date>2026-05-03T10:07:13+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:absrand&amp;rev=1504160315&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:acos&amp;rev=1504164345&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:add&amp;rev=1504154507&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:and&amp;rev=1504158198&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:asin&amp;rev=1504154885&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:assert&amp;rev=1504163028&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:atan&amp;rev=1504156691&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:cos&amp;rev=1504164838&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:decr&amp;rev=1504155371&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:degtorad&amp;rev=1504161125&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:del&amp;rev=1504164291&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:div&amp;rev=1504157935&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:echo&amp;rev=1504154384&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:editui&amp;rev=1504155020&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fclose&amp;rev=1504153547&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fgetc&amp;rev=1504157085&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fopen&amp;rev=1504155217&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fopen_s&amp;rev=1504155652&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fputc&amp;rev=1504162766&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:frand&amp;rev=1504164783&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fread&amp;rev=1504156568&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fseek&amp;rev=1504161785&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:ftell&amp;rev=1504160093&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fwrite&amp;rev=1504158242&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getlineno&amp;rev=1504155891&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getscriptfilename&amp;rev=1504164451&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getworkingdir&amp;rev=1504155518&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:goto&amp;rev=1504156956&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:if&amp;rev=1504157408&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:incr&amp;rev=1504159720&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isdef&amp;rev=1504163405&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:iseq&amp;rev=1504156130&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isgt&amp;rev=1504156090&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:islt&amp;rev=1504160989&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isneq&amp;rev=1504163230&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:log&amp;rev=1504162617&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:log10&amp;rev=1504164104&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:max&amp;rev=1504156093&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:messagebox&amp;rev=1504160612&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:min&amp;rev=1504159888&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:mod&amp;rev=1504160529&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:mul&amp;rev=1504162947&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:new&amp;rev=1504154804&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:not&amp;rev=1504157017&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:or&amp;rev=1504158449&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:pow&amp;rev=1504155577&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:radtodeg&amp;rev=1504155256&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:rand&amp;rev=1504162082&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:return&amp;rev=1504158268&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:rewind&amp;rev=1504157210&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:set&amp;rev=1504154357&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:setworkingdir&amp;rev=1504164239&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sin&amp;rev=1504161442&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sqrt&amp;rev=1504158701&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:srand&amp;rev=1504164508&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strcat&amp;rev=1504154842&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strcmp&amp;rev=1504157281&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:stresc&amp;rev=1504158452&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strfind&amp;rev=1504152915&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strleft&amp;rev=1504159543&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strlen&amp;rev=1504158220&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strlower&amp;rev=1504164071&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strreplace&amp;rev=1504156374&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strright&amp;rev=1504164645&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strsub&amp;rev=1504162828&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strupper&amp;rev=1504160529&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sub&amp;rev=1504153766&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:tan&amp;rev=1504153790&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:xor&amp;rev=1504157018&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.bundysoft.com/wiki/lib/images/favicon.ico">
        <title>BundyWiki</title>
        <link>http://www.bundysoft.com/wiki/</link>
        <url>http://www.bundysoft.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:absrand&amp;rev=1504160315&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:18:35+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:absrand</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:absrand&amp;rev=1504160315&amp;do=diff</link>
        <description>Description


Get a floating point random number, in the range of 0...1.

Function prototype


float absrand &lt;void&gt;


Arguments


None.

Return value


A floating-point random number, in the range of 0...1.

Example


// write random number to event log 10 times
int i
set i 0
do
  echo &lt;zs:absrand&gt;
  incr i
while &lt;zs:islt i 10&gt;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:acos&amp;rev=1504164345&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:25:45+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:acos</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:acos&amp;rev=1504164345&amp;do=diff</link>
        <description>Description


Calculate the arccosine of a cosine value.

Function prototype


double acos &lt;double:value&gt;


Arguments
 Name  Type  Comment  value  double  A cosine value, the arccosine of which is to be calculated. 
Return value


The arccosine of the cosine value, as a double-precision angle, in radians.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:add&amp;rev=1504154507&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:41:47+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:add</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:add&amp;rev=1504154507&amp;do=diff</link>
        <description>Description


Add two numbers.

Function prototype


variant add &lt;variant:Var1&gt; &lt;variant:Var2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The first number to be added.   arg2    variant   The second number to be added. 


arg1arg2add


Return value


The sum of arg1 and arg2, in the data type of arg1.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:and&amp;rev=1504158198&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:43:18+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:and</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:and&amp;rev=1504158198&amp;do=diff</link>
        <description>Description


The boolean 'and' function returns true if both of its two boolean arguments are true.

Function prototype


bool and &lt;bool:arg1&gt; &lt;bool:arg2&gt;


Arguments
  Name    Type   Comment   arg1    bool   The first boolean argument to be tested.   arg2    bool   The second boolean argument to be tested. 
Return value


True if both arg1 and arg2 are true, and false otherwise.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:asin&amp;rev=1504154885&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:48:05+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:asin</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:asin&amp;rev=1504154885&amp;do=diff</link>
        <description>Description


Calculate the arcsine of a sine value.

Function prototype


double asin &lt;double:value&gt;


Arguments
 Name  Type  Comment  value  double  A sine value, the arcsine of which is to be calculated. 
Return value


The arcsine of the sine value, as a double-precision angle, in radians.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:assert&amp;rev=1504163028&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:03:48+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:assert</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:assert&amp;rev=1504163028&amp;do=diff</link>
        <description>Description


Test a boolean value, and if false, display an error message and halt script execution.

Function prototype


void assert &lt;bool:Condition&gt; &lt;string:Message&gt;


Arguments
 Name  Type  Comment  Condition  bool  The boolean value to be tested.  Message  string  The string of text to be displayed if Condition is false. 
Return value


None.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:atan&amp;rev=1504156691&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:18:11+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:atan</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:atan&amp;rev=1504156691&amp;do=diff</link>
        <description>Description


Calculate the arctangent of a tangent value.

Function prototype


double atan &lt;double:value&gt;


Arguments
 Name  Type  Comment  value  double  A tangent value, the arctangent of which is to be calculated. 
Return value


The arctangent of the tangent value, as a double-precision angle, in radians.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:cos&amp;rev=1504164838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:33:58+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:cos</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:cos&amp;rev=1504164838&amp;do=diff</link>
        <description>Description


Calculate the cosine of an angle.

Function prototype


double cos &lt;double:Angle&gt;


Arguments
 Name  Type  Comment  Angle  double  An angle, in radians, the cosine of which is to be calculated. 
Return value


The cosine of the angle, as a double.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:decr&amp;rev=1504155371&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:56:11+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:decr</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:decr&amp;rev=1504155371&amp;do=diff</link>
        <description>Description


Decrement the value of an integer.

Function prototype


int64 incr &lt;varref:Var&gt;


Arguments
 Name  Type  Comment  Var  varref  A reference to the integer variable to be decremented.  
Return value


The value of Var after it was decremented by 1.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:degtorad&amp;rev=1504161125&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:32:05+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:degtorad</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:degtorad&amp;rev=1504161125&amp;do=diff</link>
        <description>Description


Convert an angle in degrees to radians.

Function prototype


double DegToRad &lt;double:value&gt;


Arguments
  Name    Type   Comment   value    double   The angle in degrees to be converted to radians. 
Return value


A double-precision angle, measured in radians.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:del&amp;rev=1504164291&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:24:51+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:del</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:del&amp;rev=1504164291&amp;do=diff</link>
        <description>Description


Delete a variable.

Function prototype


void del &lt;varref:var&gt;


Arguments
 Name  Type  Comment  var  varref  A reference to the variable to be deleted. 
Return value


None (void).

Example


int i // create a new variable 'i'

echo &lt;zs:isdef &quot;i&quot;&gt; // is 'i' defined? (it should be)

del i // delete 'i'

echo &lt;zs:isdef &quot;i&quot;&gt; // is 'i' still defined? (it should not be)</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:div&amp;rev=1504157935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:38:55+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:div</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:div&amp;rev=1504157935&amp;do=diff</link>
        <description>Description


Divide one number by another.

Function prototype


variant div &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The numerator.   arg2    variant   The denominator. 


arg1arg2divadd


Return value


The value of arg1 divided by arg2, in the data type of arg1.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:echo&amp;rev=1504154384&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:39:44+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:echo</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:echo&amp;rev=1504154384&amp;do=diff</link>
        <description>Description


Echo a given string of text to the event log.

Function prototype


void echo &lt;string:text&gt;


Arguments
 Name  Type  Comment  text  string  The string of text to be echoed to the event log. 
Return value


None (void).

Example

Using a literal string


echo &quot;hello&quot;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:editui&amp;rev=1504155020&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:50:20+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:editui</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:editui&amp;rev=1504155020&amp;do=diff</link>
        <description>Description


Open a user interface to edit the value of a variable. 

Function prototype


bool EditUI &lt;hvar:hVar&gt; &lt;string:Prompt&gt;


Arguments
  Name    Type   Comment   hVar    hvar   A handle to the variable to be edited.   Prompt    string   A string containing a prompt for the user (usually the window title). 
Return value


The return value is true if the user presses OK in the editor dialog box, and false otherwise.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fclose&amp;rev=1504153547&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:25:47+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fclose</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fclose&amp;rev=1504153547&amp;do=diff</link>
        <description>Description


Close a file handle.

Function prototype


bool fclose &lt;voidptr:hFile&gt;


Arguments
 Name  Type  Comment  hFile  voidptr  A handle to a file that was previously opened by fopen or fopen_s. 
Return value


False if:

	*  The file handle is invalid, or;
	*  The file handle cannot be closed.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fgetc&amp;rev=1504157085&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:24:45+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fgetc</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fgetc&amp;rev=1504157085&amp;do=diff</link>
        <description>Description


Read a single character from a file at the current stream position. 

Function prototype


int fgetc &lt;voidptr:hFile&gt;


Arguments
  Name    Type   Comment   hFile    voidptr   A handle to a file created by fopen or fopen_s. 
Return value


The value of the character in the file at the current stream position, or EOF (-1) if an error occurred.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fopen&amp;rev=1504155217&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:53:37+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fopen</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fopen&amp;rev=1504155217&amp;do=diff</link>
        <description>Description


Open a file for reading or writing.

Function prototype


voidptr fopen &lt;string:FileName&gt; &lt;string:Mode&gt;


Arguments
  Name    Type   Comment   FileName    string   A string containing the name of the file to be opened.   Mode    string   A string containing the file access mode. Please see the fopen C/C++ documentation for more information. 
Return value


NULL if an error occurred, or a non-NULL handle to an opaque file object.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fopen_s&amp;rev=1504155652&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:00:52+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fopen_s</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fopen_s&amp;rev=1504155652&amp;do=diff</link>
        <description>Description


Open a file for reading or writing.

Function prototype


bool fopen_s &lt;voidptr&amp;:hFile&gt; &lt;string:FileName&gt; &lt;string:Mode&gt;


Arguments
  Name    Type   Comment   hFile    voidptr&amp;   A reference to a pointer to be used as a file handle.   FileName   string   A string containing the name of the file to be opened.   Mode    string   A string containing the file access mode. Please see the fopen C/C++ documentation for more information. 
Return value


False if an error occurred, or true …</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fputc&amp;rev=1504162766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:59:26+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fputc</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fputc&amp;rev=1504162766&amp;do=diff</link>
        <description>Description


Write a single character to a file at the current stream position. 

Function prototype


bool fputc &lt;voidptr:hFile&gt; &lt;int:char&gt;


Arguments
  Name    Type   Comment   hFile    voidptr   A handle to a file created by fopen or fopen_s.   char    int   The character code to be written to the file. 
Return value


True if successful, and false if an error occurred.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:frand&amp;rev=1504164783&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:33:03+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:frand</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:frand&amp;rev=1504164783&amp;do=diff</link>
        <description>Description


Get a floating point random number, in the range of -1...1.

Function prototype


float frand &lt;void&gt;


Arguments


None.

Return value


A floating-point random number, in the range of -1...1.

Example


// write random number to event log 10 times
int i
set i 0
do
  echo &lt;zs:frand&gt;
  incr i
while &lt;zs:islt i 10&gt;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fread&amp;rev=1504156568&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:16:08+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fread</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fread&amp;rev=1504156568&amp;do=diff</link>
        <description>Description


Read an object from a file.

Function prototype


bool fread &lt;voidptr:hFile&gt; &lt;varref:Data&gt;


Arguments
  Name    Type   Comment   hFile    voidptr   A handle to a file created by fopen or fopen_s.   Data    varref   A reference to an initialised variable, the value of which is to be read from the file. The type of the variable determines the number of bytes to be read. 
Return value


True if success, false otherwise.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fseek&amp;rev=1504161785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:43:05+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fseek</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fseek&amp;rev=1504161785&amp;do=diff</link>
        <description>Description


Reposition a file file handle within a file stream.

Function prototype


bool fseek &lt;voidptr:hFile&gt; &lt;int64:Offset&gt; &lt;int:Origin&gt;


Arguments
  Name    Type   Comment   hFile    voidptr   A handle to an open file.   Offset    int64   Number of bytes to offset from Origin.   Origin    int   Position from where Offset is added. Supported values are 0 (SEEK_SET), 1 (SEEK_CUR) and 2 (SEEK_END). Please refer to C++ fseek documentation for more information.  
Return value


True if succes…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:ftell&amp;rev=1504160093&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:14:53+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:ftell</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:ftell&amp;rev=1504160093&amp;do=diff</link>
        <description>Description


Get the current position in a file stream.

Function prototype


int64 ftell &lt;voidptr:hFile&gt;


Arguments
 Name  Type  Comment  hFile  voidptr  A handle to a file, the current stream position of which is to be determined. 
Return value

Example


voidptr fp
set fp &lt;zs:fopen &quot;c:\\test.txt&quot; &quot;w&quot;&gt;
assert fp &quot;Cannot open file!&quot;

string s
set s &quot;Hello!&quot;
fwrite fp s

echo &lt;zs:ftell fp&gt; // write the current file position to the event log

fclose fp</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fwrite&amp;rev=1504158242&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:44:02+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:fwrite</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:fwrite&amp;rev=1504158242&amp;do=diff</link>
        <description>Description


Write an object to a file.

Function prototype


bool fwrite &lt;voidptr:hFile&gt; &lt;varref:Data&gt;


Arguments
  Name    Type   Comment   hFile    voidptr   A handle to a file created by fopen or fopen_s.   Data    varref   A reference to an initialised variable, the value of which is to be written to the file. The type of the variable determines the number of bytes to be written. 
Return value


True if success, false otherwise.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getlineno&amp;rev=1504155891&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:04:51+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:getlineno</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getlineno&amp;rev=1504155891&amp;do=diff</link>
        <description>Description


Get the line number in the script of the the current statement.

Function prototype


int GetLineNo


Arguments


None.

Return value


An integer containing the current line number.

Example


echo &lt;zs:GetLineNo&gt;
echo &lt;zs:GetLineNo&gt;
echo &lt;zs:GetLineNo&gt;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getscriptfilename&amp;rev=1504164451&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:27:31+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:getscriptfilename</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getscriptfilename&amp;rev=1504164451&amp;do=diff</link>
        <description>Description


Get the full path to the current script file.

Function prototype


string GetScriptFilename


Arguments


None.

Return value


A string containing the full path to the current script file. 

n empty string is returned if the current script is not being executed from a script file, such as  the case when a plugin executes a script via the zscript_Execute function.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getworkingdir&amp;rev=1504155518&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:58:38+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:getworkingdir</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:getworkingdir&amp;rev=1504155518&amp;do=diff</link>
        <description>Description


Get the current working directory of the script. 

Function prototype


string GetWorkingDir


Arguments


None. 

Return value


The string congaing the full path to the current working directory of the script. 

Example


echo &lt;GetWorkingDir&gt;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:goto&amp;rev=1504156956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:22:36+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:goto</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:goto&amp;rev=1504156956&amp;do=diff</link>
        <description>Description


Transfer script execution to the specified script line.

Note line numbers start at 0.

Function prototype


void goto &lt;int:line&gt;


Arguments
 Name  Type  Comment  line  int  The zero-based line number to which execution should be transferred. 
Return value


None (void).</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:if&amp;rev=1504157408&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:30:08+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:if</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:if&amp;rev=1504157408&amp;do=diff</link>
        <description>Description


Test the value of a condition, and if true, execute a statement block. 

Statement prototype


if &lt;bool:condition&gt;
  ... statement block ...
endif


Arguments
  Name    Type   Comment   condition    bool   The condition that determines whether the statement block is to be executed. If true, the blcok is executed, and if false, execution skips to the matching endif/elseif/else statement that terminates the statement block.
Example


int i
set i 5


if &lt;islt i 0&gt;
  echo &quot;negative num…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:incr&amp;rev=1504159720&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:08:40+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:incr</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:incr&amp;rev=1504159720&amp;do=diff</link>
        <description>Description


Increment the value of an integer.

Function prototype


int64 incr &lt;varref:Var&gt;


Arguments
 Name  Type  Comment  Var  varref  A reference to the integer variable to be incremented.  
Return value


The value of Var after it was incremented by 1.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isdef&amp;rev=1504163405&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:10:05+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:isdef</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isdef&amp;rev=1504163405&amp;do=diff</link>
        <description>Description


Test whether a named variable exists.

Function prototype


bool isdef &lt;string:VarName&gt;


Arguments
 Name  Type  Comment  VarName  string  The name of a variable, the existence of which is to be tested.
Return value


True if the variable named by VarName exists, and false otherwise.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:iseq&amp;rev=1504156130&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:08:50+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:iseq</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:iseq&amp;rev=1504156130&amp;do=diff</link>
        <description>Description


Test the equality of two variables.

Function prototype


bool iseq &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
 Name  Type  Comment   arg1    variant   The first variable to be compared.   arg2    variant   The second variable to be compared. 


arg1arg2iseq</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isgt&amp;rev=1504156090&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:08:10+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:isgt</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isgt&amp;rev=1504156090&amp;do=diff</link>
        <description>Description


Determine whether a variable is numerically greater than another variable.

Function prototype


bool isgt &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The first variable to be compared.   arg2    variant   The second variable to be compared. 


isgtarg1arg2iseq</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:islt&amp;rev=1504160989&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:29:49+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:islt</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:islt&amp;rev=1504160989&amp;do=diff</link>
        <description>Description


Determine whether a variable is numerically less than another variable.

Function prototype


bool islt &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
   Name    Type   Comment   arg1    variant   The first variable to be compared.   arg2    variant   The second variable to be compared. 


isltarg1arg2iseq</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isneq&amp;rev=1504163230&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:07:10+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:isneq</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:isneq&amp;rev=1504163230&amp;do=diff</link>
        <description>Description


Thest the inequality of two variables.

Function prototype


bool isneq &lt;bool:arg1&gt; &lt;bool:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The first variable to be compared.   arg2    variant   The second variable to be compared. 


arg1arg2isneqiseq</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:log&amp;rev=1504162617&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:56:57+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:log</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:log&amp;rev=1504162617&amp;do=diff</link>
        <description>Description


Calculate the natural logarithm (base e) of a number.

Function prototype


double log &lt;double:value&gt;


Arguments
 Name  Type  Comment  value  double  A number, the natural logarithm of which is to be calculated. 
Return value


The natural logarithm of the value provided, in double-precision.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:log10&amp;rev=1504164104&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:21:44+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:log10</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:log10&amp;rev=1504164104&amp;do=diff</link>
        <description>Description


Calculate the basic logarithm (base 10) of a number.

Function prototype


double log10 &lt;double:value&gt;


Arguments
 Name  Type  Comment  value  double  A number, the basic logarithm of which is to be calculated. 
Return value


The basic logarithm of the value provided, in double-precision.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:max&amp;rev=1504156093&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:08:13+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:max</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:max&amp;rev=1504156093&amp;do=diff</link>
        <description>Description


Return the greater of two numbers.

Function prototype


variant max &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The first number to be evaluated.   arg2    variant   The second number to be evaluated. 
Return value


The greater of arg1 and arg2.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:messagebox&amp;rev=1504160612&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:23:32+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:messagebox</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:messagebox&amp;rev=1504160612&amp;do=diff</link>
        <description>Description


Display a modal pop-up message box.

Function prototype


uint MessageBox &lt;string:Message&gt; &lt;uint:Style&gt;


Arguments
  Name    Type   Comment   Message    string   The text to be displayed in the message box.   Style    uint   A conbination of bit flags that specify the buttons, icons and behaviour of the message box (see codes below). 

The supported values of Style are identical to those of the Microsoft Foundation Classes Message box styles, which are:</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:min&amp;rev=1504159888&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:11:28+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:min</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:min&amp;rev=1504159888&amp;do=diff</link>
        <description>Description


Return the lesser of two numbers.

Function prototype


variant min &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The first number to be evaluated.   arg2    variant   The second number to be evaluated. 
Return value


The lesser of arg1 and arg2.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:mod&amp;rev=1504160529&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:22:09+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:mod</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:mod&amp;rev=1504160529&amp;do=diff</link>
        <description>Description


Calculate the modulo of two integers (i.e. the remainder of arg1 divided by arg2).

Function prototype


variant mod &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The dividend of the modulo operation.   arg2    variant   The divisor of the modulo operation. 
Return value


The value of arg1 modulo arg2, in the data type of arg1.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:mul&amp;rev=1504162947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:02:27+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:mul</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:mul&amp;rev=1504162947&amp;do=diff</link>
        <description>Description


Multiply one number by another.

Function prototype


variant mul &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   The first number to be multiplied.   arg2    variant   The second number to be multiplied. 


arg1arg2muladd</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:new&amp;rev=1504154804&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:46:44+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:new</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:new&amp;rev=1504154804&amp;do=diff</link>
        <description>Description


Create a new variable of the type provided and with the name provided.

Function prototype


hVar new &lt;int:VarID&gt; &lt;string:VarName&gt;


Arguments
 Name  Type  Comment  VarID  int  The variable type ID of the variable to be created.  VarName  string  The name of the new variable to be created. 
Return value


A NULL variable handle if error, and a non-null variable handle otherwise.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:not&amp;rev=1504157017&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:23:37+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:not</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:not&amp;rev=1504157017&amp;do=diff</link>
        <description>Description


Negate a boolean value.

Function prototype


bool not &lt;bool:arg&gt;


Arguments
  Name    Type   Comment   arg    bool   The boolean value to be negated. 
Return value


False if arg was true, and true if arg was false.

Example


// create two new boolean variables...
bool b1
bool b2

// ...and set one to true and one to false
set b1 true
set b2 false

// call 'not b1', and pipe result to event log via echo
echo &lt;zs:not b1&gt;

// call 'not b2', and pipe result to event log via echo
ec…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:or&amp;rev=1504158449&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:47:29+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:or</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:or&amp;rev=1504158449&amp;do=diff</link>
        <description>Description


The boolean 'or' function returns true if either of its two boolean arguments are true. 

Function prototype


bool or &lt;bool:arg1&gt; &lt;bool:arg2&gt;


Arguments
  Name    Type   Comment   arg1    bool   The first boolean argument to be tested.   arg2    bool   The second boolean argument to be tested. 
Return value


True if either arg1 or arg2 are true, and false if neither are true.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:pow&amp;rev=1504155577&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:59:37+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:pow</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:pow&amp;rev=1504155577&amp;do=diff</link>
        <description>Description


Calculate the value of a base raised to the power of an exponent.

Function prototype


double pow &lt;double:base&gt; &lt;double:expon&gt;


Arguments
  Name    Type   Comment   base    double   The base value to be raised to the power of expon.   expon    double   The exponent. 
Return value


A double-precision value corresponding to base raised to the power of expon.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:radtodeg&amp;rev=1504155256&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:54:16+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:radtodeg</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:radtodeg&amp;rev=1504155256&amp;do=diff</link>
        <description>Description


Convert an angle in radians to degrees.

Function prototype


double RadToDeg &lt;double:value&gt;


Arguments
  Name    Type   Comment   value    double   The angle in radians to be converted to degrees. 
Return value


A double-precision angle, measured in degrees.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:rand&amp;rev=1504162082&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:48:02+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:rand</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:rand&amp;rev=1504162082&amp;do=diff</link>
        <description>Description


Get a random integer.

Function prototype


int rand &lt;void&gt;


Arguments


None.

Return value


An integer random number, in the range of 0...0x7FFFF.

Example


// write random number to event log 10 times
int i
set i 0
do
  echo &lt;zs:rand&gt;
  incr i
while &lt;zs:islt i 10&gt;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:return&amp;rev=1504158268&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:44:28+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:return</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:return&amp;rev=1504158268&amp;do=diff</link>
        <description>Description


Terminate execution of a script and return a value to the caller.

Function prototype


void return &lt;variant:rval&gt;


Arguments
  Name    Type   Comment   rval    variant   The value to be returned to the caller. 
Return value


None.

Example


return false</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:rewind&amp;rev=1504157210&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:26:50+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:rewind</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:rewind&amp;rev=1504157210&amp;do=diff</link>
        <description>Description


Rewind a file handle to the start of the file stream.

Function prototype


void rewind &lt;voidptr:hFile&gt;


Arguments
  Name    Type   Comment   hFile    voidptr   A file handle, as created by fopen or fopen_s.  
Return value


None.

Example


// open a file, fseek forward, then rewind

// open file
voidptr fp
assert &lt;zs:fopen_s fp &quot;C:\\test.txt&quot; &quot;r&quot;&gt; &quot;Could not open file!&quot;

// fseek to 10
assert &lt;zs:fseek fp 10 0&gt; &quot;Fseek failed!&quot;
echo &lt;zs:ftell fp&gt; // should be at 10 now

// rewind…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:set&amp;rev=1504154357&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:39:17+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:set</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:set&amp;rev=1504154357&amp;do=diff</link>
        <description>Description


Set the value of a variable. This is equivalent to the '=' assignment operator in C/C++.

Function prototype


varref set &lt;varref:var&gt; &lt;variant:VarValue&gt;


Arguments
 Name  Type  Comment  var  varref  A reference to a variable, the value of which is to be set.  VarValue  variant  The desired value of the variable addressed by hVar, as a variant. 
Return value


NULL if an error occurred, and a valid variable reference otherwise (same as var argument).</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:setworkingdir&amp;rev=1504164239&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:23:59+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:setworkingdir</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:setworkingdir&amp;rev=1504164239&amp;do=diff</link>
        <description>Description


Set the current working directory of a script. 

Function prototype


bool SetWorkingDir &lt;string:PathName&gt;


Arguments
  Name    Type   Comment   PathName    string   The full path to the desired working directory of the script.  
Return value

Example


SetWorkingDir &quot;C:\\this is a test&quot;
echo &lt;GetWorkingDir&gt;</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sin&amp;rev=1504161442&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:37:22+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:sin</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sin&amp;rev=1504161442&amp;do=diff</link>
        <description>Description


Calculate the sine of an angle.

Function prototype


double sin &lt;double:Angle&gt;


Arguments
 Name  Type  Comment  Angle  double  An angle, in radians, the sine of which is to be calculated. 
Return value


The sine of the angle, as a double.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sqrt&amp;rev=1504158701&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:51:41+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:sqrt</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sqrt&amp;rev=1504158701&amp;do=diff</link>
        <description>Description


Calculate the square root of a number.

Function prototype


double sqrt &lt;double:value&gt;


Arguments
  Name    Type   Comment   value    double   A number, the square root of which is to be calculated. 
Return value


The square root of the value provided, in double-precision.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:srand&amp;rev=1504164508&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:28:28+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:srand</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:srand&amp;rev=1504164508&amp;do=diff</link>
        <description>Description


Seed the pseudorandom number generator.

Function prototype


void srand &lt;uint:seed&gt;


Arguments
  Name    Type   Comment   seed    uint   The seed value. 
Return value


None.

Example


srand 373278423


Comments


None.

See also

	*  rand
	*  frand
	*  absrand</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strcat&amp;rev=1504154842&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:47:22+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strcat</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strcat&amp;rev=1504154842&amp;do=diff</link>
        <description>Description


Concatenate two strings.

Function prototype


string strcat &lt;string:str1&gt; &lt;string:str2&gt;


Arguments
  Name    Type   Comment   str1    string   The first part of the concatenated string.   str2    string   The second part of the concatenated string. 
Return value


A string containing the contents of str1 followed by the contents of str2.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strcmp&amp;rev=1504157281&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:28:01+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strcmp</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strcmp&amp;rev=1504157281&amp;do=diff</link>
        <description>Description


Compare two strings, as with the strcmp function in C.

Function prototype


int strcmp &lt;string:str1&gt; &lt;string:str2&gt;


Arguments
  Name    Type   Comment   str1    string   The first of the strings to be compared.   str2    string   The second of the strings to be compared. 
Return value

	*  0 if the strings are identical,
	*  &lt;0 if str1 is lexicographically less than str2, or;
	*  &gt;0 if str1 is lexicographically greater than str2.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:stresc&amp;rev=1504158452&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:47:32+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:stresc</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:stresc&amp;rev=1504158452&amp;do=diff</link>
        <description>Description


Process escape sequences in a string.

Function prototype


string stresc &lt;string:Text&gt;


Arguments
  Name    Type   Comment   Text    string   The text string to be escaped. 
Return value


A string containing the escaped text.

Example


string s
set s &quot;The newlines has been escaped\\r\\n...and so have the \\\&quot;quotation marks\\\&quot;&quot;

// echo the escaped text
echo &quot;Escaped:&quot;
echo &lt;stresc s&gt;

// echo the unescaped text
echo &quot;Unescaped:&quot;
echo s</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strfind&amp;rev=1504152915&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:15:15+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strfind</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strfind&amp;rev=1504152915&amp;do=diff</link>
        <description>Description


Find the position of a substring within a text string. 

Function prototype


int strfind &lt;string:Text&gt; &lt;string:TextToFind&gt; &lt;int:StartAt&gt;


Arguments
  Name    Type   Comment   Text    string   A text string.   TextToFind    string   A substring, the position of which in Text is to be found.   StartAt    int   The zero-based  starting position in Text to begin looking for TextToFind. Default is 0. 
Return value


An integer containing the position of the start of TextToFind in Text…</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strleft&amp;rev=1504159543&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:05:43+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strleft</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strleft&amp;rev=1504159543&amp;do=diff</link>
        <description>Description


Extract a substring of text from the start of a string (the 'left'). 

Function prototype


string strleft &lt;string:Text&gt; &lt;int:nChars&gt;


Arguments
  Name    Type   Comment   Text    string   A text string.   nChars    int   The number of characters to extract from the Text argument. 
Return value


A string containing the desired range of the Text string.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strlen&amp;rev=1504158220&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:43:40+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strlen</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strlen&amp;rev=1504158220&amp;do=diff</link>
        <description>Description


Get the length of a string in characters.

Function prototype


int strlen &lt;string:str&gt;


Arguments
  Name    Type   Comment   str    string   A string, the length of which is to be determined. 
Return value


An integer containing the length of str, in characters.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strlower&amp;rev=1504164071&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:21:11+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strlower</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strlower&amp;rev=1504164071&amp;do=diff</link>
        <description>Description


Convert a text string to lower case.

Function prototype


string strlower &lt;string:Text&gt;


Arguments
  Name    Type   Comment   Text    string   The text string to be converted to lower case. 
Return value


A string containing the input text converted to lower case.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strreplace&amp;rev=1504156374&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:12:54+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strreplace</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strreplace&amp;rev=1504156374&amp;do=diff</link>
        <description>Description


Replace a substring of text within a string with another substring.

Function prototype


string strreplace &lt;string:Text&gt; &lt;string:Old&gt; &lt;string:New&gt;


Arguments
  Name    Type   Comment   Text    string   A string, a substring of which is to be replaced.   Old    string   A substring of Text that is to be replaced.    New    string   A string that is to replace Old within Text.  
Return value


A string containing Text with all instances of Old replaced by New.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strright&amp;rev=1504164645&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:30:45+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strright</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strright&amp;rev=1504164645&amp;do=diff</link>
        <description>Description


Extract a substring of text from the end of a string (the 'right'). 

Function prototype


string strright &lt;string:Text&gt; &lt;int:nChars&gt;


Arguments
  Name    Type   Comment   Text    string   A text string.   nChars    int   The number of characters to extract from the Text argument. 
Return value


A string containing the desired range of the Text string.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strsub&amp;rev=1504162828&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T07:00:28+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strsub</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strsub&amp;rev=1504162828&amp;do=diff</link>
        <description>Description


Extract a substring of text from a string. 

Function prototype


string strsub &lt;string:Text&gt; &lt;int:StartAt&gt; &lt;int:nChars&gt;


Arguments
  Name    Type   Comment   Text    string   A text string.   StartAt   int   The position in the string (zero-based) from which to begin extracting the substring.   nChars    int   The number of characters to extract from the Text argument. 
Return value


A string containing the desired range of the Text string.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strupper&amp;rev=1504160529&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T06:22:09+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:strupper</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:strupper&amp;rev=1504160529&amp;do=diff</link>
        <description>Description


Convert a text string to upper case.

Function prototype


string strupper &lt;string:Text&gt;


Arguments
  Name    Type   Comment   Text    string   The text string to be converted to UPPER CASE. 
Return value


A string containing the input text converted to upper case.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sub&amp;rev=1504153766&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:29:26+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:sub</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:sub&amp;rev=1504153766&amp;do=diff</link>
        <description>Description


Subtract one number from another.

Function prototype


variant sub &lt;variant:arg1&gt; &lt;variant:arg2&gt;


Arguments
  Name    Type   Comment   arg1    variant   A number.   arg2    variant   The number to be subtracted from arg1. 


arg1arg2subadd</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:tan&amp;rev=1504153790&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T04:29:50+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:tan</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:tan&amp;rev=1504153790&amp;do=diff</link>
        <description>Description


Calculate the tangent of an angle.

Function prototype


double tan &lt;double:Angle&gt;


Arguments
 Name  Type  Comment  Angle  double  An angle, in radians, the tangent of which is to be calculated. 
Return value


The tangent of the angle, as a double.</description>
    </item>
    <item rdf:about="http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:xor&amp;rev=1504157018&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-08-31T05:23:38+00:00</dc:date>
        <title>plugins:general:zeoscript:reference:functions:xor</title>
        <link>http://www.bundysoft.com/wiki/doku.php?id=plugins:general:zeoscript:reference:functions:xor&amp;rev=1504157018&amp;do=diff</link>
        <description>Description


The boolean 'xor' function returns true if one, and only one, of its two boolean arguments are true. 

Function prototype


bool xor &lt;bool:arg1&gt; &lt;bool:arg2&gt;


Arguments
  Name    Type   Comment   arg1    bool   The first boolean value.   arg2    bool   The second boolean value. 
Return value


True if:</description>
    </item>
</rdf:RDF>
