Re: Break or Continue in a whiel loop

"Shane Farmer" <[email protected]> Thu, 19 Oct 2006 01:18:08 +1000
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
--===============0447509023==
Content-Type: multipart/alternative; 
	boundary="----=_Part_10347_18884233.1161184688365"

------=_Part_10347_18884233.1161184688365
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

As you can see, I have just torn the IfDirective to bits to get what I
needed. This was mainly due to it being hard to find documentation on
writing directives anywhere but in the code.

Shane


On 10/19/06, Shane Farmer <[email protected]> wrote:
>
> Hi All,
>
> I have been looking around for a while loop to no avail. As such I have
> implimented a very basic while loop directive. I am using an older version
> of WM (1.0 or 1.1) and was wondering if it possible to create 2
> subdirectives, break and continue, and if anyone would have some pointers on
> how to go about doing this.
>
> The code is _very_ basic ATM and simply loops while ever the conditional
> arg is true and evaluates [block.write(...)] on the block arg.
>
> Im am all ears for better design startegies for this directive as well.
>
> Thanks in advance
> Shane
>
>

------=_Part_10347_18884233.1161184688365
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>As you can see, I have just torn the IfDirective to bits to get what I needed. This was&nbsp;mainly due to it being hard to find documentation on writing directives anywhere but in the code.</div>
<div>&nbsp;</div>
<div>Shane<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/19/06, <b class="gmail_sendername">Shane Farmer</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi All,</div>
<div>&nbsp;</div>
<div>I have been looking around for a while loop to no avail. As such I have implimented a very basic while loop directive.&nbsp;I am using an older version of WM (1.0 or 1.1) and was wondering if it possible to create&nbsp;2 subdirectives,&nbsp;break and continue, and if anyone would have some pointers on how to go about doing this. 
</div>
<div>&nbsp;</div>
<div>The code is _very_ basic ATM and simply loops while ever the conditional arg is true and evaluates [block.write(...)] on the block arg.</div>
<div>&nbsp;</div>
<div>Im am all ears for better design startegies for this directive as well.</div>
<div>&nbsp;</div>
<div>Thanks in advance</div><span class="sg">
<div>Shane</div></span><br clear="all"></blockquote></div><br>

------=_Part_10347_18884233.1161184688365--


--===============0447509023==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--===============0447509023==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Webmacro-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/webmacro-user

--===============0447509023==--