[lp_integer_odd]

Description

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

Parameters

-integer integer, required Integer to evaluate as odd.

Sample Usage

loop: 10;
	loop_count ' is odd is ' (lp_integer_odd: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_odd',
	-description='Returns true if given integer is odd.',
	-priority='replace',
	-required='integer';
	return: (integer: #integer) % 2 == 1;

/define_tag;

]

 

Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net