i have a little problem 😀
i can’t find the right words for searching so i wrote this question.
how i get this shorter? I know with this logic || but how i could add more than 1 in one line?
Thanks for time
Best regards
John
bool b = [self NSStringContains:convert contains:@"Input"];
if (b ==true)
{
bool b = [self NSStringContains:convert contains:@"Output"];
if (b ==true)
{
bool b = [self NSStringContains:convert contains:@"statecheck"];
if (b ==true)
{
....
}
}
}
In this case, you seem to need
&&:For what it’s worth, given
bool b;,if (b==true)is always redundant — just useif (b).