Input functions returning values

To make my gameplay easier and to make my input programming easier too, I was wondering if its possible to functions to return values, speaking of InputComponents (BindActions & Axis)

I tried this but UE4 gives me error, it seems the InputComponent->BindAction (or Axis) can call void functions only.

Is there a way to implement what I want?