<?xml version="1.0" encoding="windows-1252"?>
<node id="240173" title="Re: Flag variables" created="2003-03-03 17:20:46" updated="2004-08-22 10:21:28">
<type id="11">
note</type>
<author id="211693">
allolex</author>
<data>
<field name="doctext">
&lt;p&gt;
Maybe wiser heads than mine have posted here, but if you're dying to use flags, you could use constants.  So here's an answer to your third question.
&lt;/p&gt;

&lt;code&gt;
use constant PRINTFLAG =&gt; 0;
use constant SAVEFLAG =&gt; 1;
use constant MAILFLAG =&gt; 2;
&lt;/code&gt;

&lt;p&gt;And then keep track of it with a status/state variable.  That at least makes the code easier to read: &lt;code&gt;$state = PRINTFLAG;&lt;/code&gt;, instead of just a number.  Of course, it's really only approporiate where multiple states come into question.&lt;/p&gt;
&lt;p&gt;
--&lt;br&gt;
Allolex
&lt;/p&gt;</field>
<field name="root_node">
239992</field>
<field name="parent_node">
239992</field>
</data>
</node>
