[break]

Description

Link: [break]
Author: Jason Huck
Category: Error
Version: 8.x
License: Public Domain
Posted: Oct. 25, 2005
Updated: Jan. 16, 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.

Parameters

none


Sample Usage

protect;
	var('a' = 1);
	break;
	$a = 2;
/protect;

$a;

-> 1
						

Source Code

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.
1
2
3
4
5
6
7
8
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;

 

Related Tags



Comments

none

Email:


Password:



Newest

Most Popular