This article covers different ways to convert a Boolean to an Int in Kotlin. The conversion should be such that true is 1, and false is 0.
確定! 回上一頁