# Function into a variable?

**URL:** <https://forum.kirupa.com/t/function-into-a-variable/279660>\
**Category:** Uncategorized\
**Created:** [January 17, 2009, 1:27am UTC](https://forum.kirupa.com/t/function-into-a-variable/279660 "2009-01-17T01:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [January 17, 2009, 1:27am UTC](https://forum.kirupa.com/t/function-into-a-variable/279660/1 "2009-01-17T01:27:00Z")

</div>

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

i have the following function for example

```auto

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

```

then i have this if else statement

```auto

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:
