Both being true is no more positive than just one, one is enough...
I'd take the fail by default view and go something like this:
// set both pingRet and pingRet2 as false out here to start
// then do the stuff which pings and sets pingRet and pingRet2 to actual values
if(pingRet || pingRet2)
{
// Either one of the statements being true will get to here so do success stuff
}
else
{
// Neither was true to get here so do failure stuff
}
JimboZA:
Both being true is no more positive than just one, one is enough...
I'd take the fail by default view and go something like this:
// set both pingRet and pingRet2 as false out here to start
// then do the stuff which pings and sets pingRet and pingRet2 to actual values
if(pingRet || pingRet2)
{
// Either one of the statements being true will get to here so do success stuff
}
else
{
// Neither was true to get here so do failure stuff
}
thats exactly what i've done.. many thanks.. all working