Cynosure.X International

:

Add Comment | Related Links | TrackBack
Related Content

Unify Boolean (Freeware)

There are a lot of different ways to specify boolean value--true, 23497, yes--not to mention all of the uppercase and lowercase permutations. "UnifyBoolean.class" processes all the different permutations and outputs '1' or '0' for easy and efficient logic handling. It is most useful when you are not sure what kind of results you are going to get from user input or output of scripts.

"UnifyBoolean.class" can handle uppercase and lowercase values. Any numerical value greater than 0 is consider true, while any numerical value less than 1 is considered false. True, yes, 't', and 'y' are considered as true values. False, no, 'f', and 'n' are considered as false values.

"UnifyBoolean.class" accepts the boolean value either on the command-line or piped in through stdin.

"UnifyBoolean.class" takes advantage of the CI Class Package 5.6 or newer. You will have to download the package (from this web site) and install it if you don't have it already.

"UnifyBoolean.class" is distributed as Freeware. Please see the "Freeware License Agreement" elsewhere on this site.

Usage

java UnifyBoolean
or
java UnifyBoolean value

Attached File: UnifyBoolean.class (2 KB)

Chieh Cheng
Mon, 21 Dec 2009 08:20:36 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

Send Ping | TrackBack URL | Spam Control

Title: UnifyBoolean.sh (GPL)
Weblog: Cynosure.X International
Excerpt: "UnifyBoolean.sh" takes advantage of the "IsNumber.sh" (GPL) shell script, which is also available on this site. So to use the this script, you will need to download the "IsNumber.sh" script if you don't already have it. "UnifyBoolean.sh" is distributed as executable source code under the GNU Gen . . .
Tracked: Mon, 21 Dec 2009 08:21:59 +0000

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 7 - 7?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

18 Users Online

Hacking Digital Cameras
Fun for Photographers


Amazon Associate

Copyright © 1996 - 2017. All Rights Reserved.