根据参数值的类型,将参数值转换为布尔值。
转化
toBool(<parameter>)
toBool(<decimal>)
toBool(<boolean>)
toBool(<string>)
toBool(<integer>)
返回布尔值。
toBool("true")
toBool(1)
返回true。
toBool("this is not a boolean")
返回false。