<?xml version="1.0" encoding="windows-1252"?>
<node id="947" title="unless statements" created="1999-11-04 23:10:32" updated="2005-08-15 10:16:50">
<type id="956">
perltutorial</type>
<author id="113">
root</author>
<data>
<field name="doctext">
Unless statements allow you to say unless something is true do this.
For example:&lt;BR&gt;
&lt;PRE&gt;
$value=20;
unless($divisor==0){      #so long as the $divisor isn't equal to 0
  $value=$value/$divisor; #go ahead and divide $value by $divisor
} else {
  $divisor=1;             #otherwise set $divisor to 1
}
&lt;/PRE&gt;
If you've got that I suggest you take a look at [while loops]</field>
</data>
</node>
