Return Value from Plugin

Hi,
Is there a way to return something from a custom Plugin and access the value in a test case?
Or maybe modifying global variables in a custom Plugin?

Thanks

you can simply use a custom keyword