GSAK (Geocaching Swiss Army Knife)
Contents - Index

BoolToStr (function)

BoolToStr(bExpression,sTrue,sFalse) : string

Convert a Boolean value to a corresponding string. This function gives you complete control over the sting data that will be generated. If bExpression is true, then the resulting string will be sTrue, if bExpression is false then the resulting string will be sFalse

Example:
 

$test = true
$msg = BoolToStr($test,"Yes","No")
Cancel msg=$msg




See also the complimentary StrToBool function

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