BluePrint Function Return Value is not working?

Print result is 0 here,I don’t konw where I make mistake.The Int is a local variable.

You do not return value from the false branch