Lasso Soft Inc. > Home

[break]

Linkbreak
AuthorJason Huck
CategoryError
Version8.x
LicensePublic Domain
Posted25 Oct 2005
Updated16 Jan 2006
More by this author...

Description

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.

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.

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

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft