What I want do is to deine a function do sth depends on the condition, and finally return a result.
My issue is: if there's an "if" inside function defination, the function can not execuate any futher. here, "echo" is just an example, since it's easy to get the feedback.
I'm not sure if i...