Hi Freaks,
Just some quick questions:
1) Assuming the function test() returns a true or false value, would these two pieces of code process the same? (if not could you please explain why)
if(test()){
// action(s)
}
//and
if(test() === true){
//action(s)
}
2) Same question except for false:
if(!test()){
// action(s)
}
//and
if(test() === false){
//action(s)
}
3) if the function returned a string / integer / array / true on success or false on failure would the actions in the if loop execute? (assuming that the function test returned success and therefore was a string / integer / array / true):
if(test()){
// action(s)
}
Thanks for reading and for everyones help in advance. I know this kind of post would generally be responded to with go try it for yourself but my XAMPP has currently been not allowing me to turn on Apache because of an error.
Timothy