Good evening lovely community,
this is my first post, please have mercy, if I do something wrong.
I know there are some similar questions here, but I doesn\'t under
Well, by using guard statement you can check if both values are not nil, and converting it to Int typ
guard let value_one = Int(goalPlayerOne), let value_two = Int(goalPlayerTwo) else {
print("Some value is nil")
return
}
so you can safely compare two values.
if value_one < value_two {
//Do something
}