Lasso Soft Inc. > Home

[lp_integer_even]

Linklp_integer_even
AuthorBil Corry
CategoryMath
Version8.x
LicensePublic Domain
Posted03 Dec 2005
Updated03 Dec 2005
More by this author...

Description

Returns true if given integer is even.

Sample Usage

loop: 10;
loop_count ' is even is ' (lp_integer_even:loop_count) '
'; /loop;

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:'lp_integer_even',
	-description='Returns true if given integer is even.',
	-priority='replace',
	-required='integer';
	return: (integer: #integer) % 2 == 0;

/define_tag;

]

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