GSAK (Geocaching Swiss Army Knife)
Contents - Index

StrToBool (function)

StrToBool(sData) : boolean

StrToBool will do it's best to convert sData to a boolean true or false. Basically it will return true for the following strings (case is not significant):

True
T
Yes
Y
1
-1
J

Or if the first character of your string is: T,Y,1,J

Anything else will return false. 

See also the complimentary BoolToStr function

Alpha List         Category List
Copyright 2004-2019 CWE Computer Services  
Privacy Policy Contact