根據其型別,將引數值轉換為布林值。
轉換
toBool(<parameter>)
toBool(<decimal>)
toBool(<boolean>)
toBool(<string>)
toBool(<integer>)
傳回布林值。
toBool("true")
toBool(1)
傳回true。
toBool("this is not a boolean")
傳回false。