Let's say that I want to check that one of two terms are effective, how do I express it?
if (value == 1 **--OR--** value 开发者_如何学C== nil) {
do something;
}
||
eg: if (value == 1 || value == nil)
Let's say that I want to check that one of two terms are effective, how do I express it?
if (value == 1 **--OR--** value 开发者_如何学C== nil) {
do something;
}
||
eg: if (value == 1 || value == nil)
精彩评论