<?xml version="1.0" encoding="windows-1252"?>
<node id="239691" title="Re^2: On goto" created="2003-03-01 08:11:42" updated="2005-05-17 18:50:14">
<type id="11">
note</type>
<author id="114691">
Aristotle</author>
<data>
<field name="doctext">
&lt;code&gt;
{
    ask('databasetype','Database type?','mysql');
    output("Sorry, invalid option\n\n"), redo
        if not grep getConf('databasetype') eq $_, @databases;
}
&lt;/code&gt;

Unless &lt;tt&gt;@databases&lt;/tt&gt; is so large that you need the short-circuiting behaviour of the &lt;tt&gt;foreach&lt;/tt&gt; version.

&lt;p align="right"&gt;&lt;em&gt;Makeshifts last the longest.&lt;/em&gt;&lt;/p&gt;</field>
<field name="root_node">
239614</field>
<field name="parent_node">
239615</field>
</data>
</node>
