Print values from a variable calculated in a function

I tried to do some calculation within a function inside the code section. Now i want to print the value as a message.

Values printed as blank for me. But when i checked the logs, the values is correctly printed using the same variable.

1 Like

In order to return a value from the function and access it later, you need to resolve it in the function.

1 Like

Thanks Pratik for the response. I think i am able to do it now. The issue with my function is that i missed to return any value and hence it is printing blank string.