Do you mean returning a value from a microflow?
If you do, then you just need to add a red End Event at the end of the microflow. In the End Event you can select the return type and a value.
https://docs.mendix.com/refguide/end-event/#return-value
I hope this helps.