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.
Did your message disappear? Read the Forums FAQ.
Title: UnifyBoolean.sh (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
12 Users Online
Copyright © 1996 - 2017. All Rights Reserved.