How should I use the If statement using OR ||
operator in Swift 3
if (oName.text="" || oWeight.text="")
{
print("Field Empty")
}
How should I use the If statement using OR ||
operator in Swift 3
if (oName.text="" || oWeight.text="")
{
print("Field Empty")
}
You're assigning instead of checking for equality...