根據參數值的類型將參數值轉換為布爾值。
轉換
toBool(<parameter>)
toBool(<decimal>)
toBool(<boolean>)
toBool(<string>)
toBool(<integer>)
返回布爾值。
toBool("true")
toBool(1)
返回true。
toBool("this is not a boolean")
返回false。