Function into a variable?

This is something that I’m dealing a lot, if there are links to explain this… great!

i have the following function for example


public function getData() {
     getHDACAddOn( appFacade.loginSession.sessionToken );
}

then i have this if else statement


if (someValue != null) {
     trace('show me');
} else {
     trace('dont show me');
}

where i want someValue to be equal my public function getData();

how do i approach this issue? :sombrero: