Link | break |
Author | Jason Huck |
Category | Error |
Version | 8.x |
License | Public Domain |
Posted | 25 Oct 2005 |
Updated | 16 Jan 2006 |
More by this author... |
This is actually Bil Corry's [lw_skip] tag. (See this discussion on ListSearch.com.) I just renamed it to break because, well, that's what it is!
This lets you skip the rest of any [protect] block without generating an error. Handy for process flow control.
protect; var('a' = 1); break; $a = 2; /protect; $a; -> 1
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag( 'break', -priority='replace', -description='Sends a fail with no error to skip the rest of the current protect block.' ); fail(0, error_noerror); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft