Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
||我应该如何在 Swift 3 中使用使用 OR 运算符的 If 语句
||
if (oName.text="" || oWeight.text="") { print("Field Empty") }
您正在分配而不是检查相等性...
if (oName.text == "" || oWeight.text == "") { print("Field Empty") }