Function call in if statement

when we call ispalindrome function, the function has actually two values: true or false. shouldn’t we specify in the bracket of the if statement that output-palindromic string only when ispalindrome result is true?

Please provide the video name and time strap so that i can check.