[lp_integer_even]

Description

Link: [lp_integer_even]
Author: Bil Corry
Category: Math
Version: 8.x
License: Public Domain
Posted: Dec. 03, 2005
Updated: Jan. 01, 0001
More by this author...
Returns true if given integer is even.

Parameters

-integer integer, required Integer to evaluate as even.

Sample Usage

loop: 10;
loop_count ' is even is ' (lp_integer_even:loop_count) '<br>';
/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.
1
2
3
4
5
6
7
8
9
10
11
[

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

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net