# Function explanation

**URL:** https://forum.kirupa.com/t/function-explanation/168948
**Category:** Uncategorized
**Created:** [November 11, 2005, 1:30pm UTC](https://forum.kirupa.com/t/function-explanation/168948 "2005-11-11T13:30:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Xisco](https://avatars.discourse-cdn.com/v4/letter/x/53a042/32.png) [@Xisco](https://forum.kirupa.com/u/Xisco)
#### Post date: [November 11, 2005, 1:30pm UTC](https://forum.kirupa.com/t/function-explanation/168948/1 "2005-11-11T13:30:23Z")

</div>

I ve a bit of missunderstood about functions: as i read the functions works:

basically 2 types:  
named (can be lonely)  
unamed (need and object)

- can i define a function wherever i want? ( \_root, MC…) and call it from everywhere?, before or after i created it?

- if the variables of a function are local variables of that function. How can i store the result of a calculation of the function, in a variable outside it?

apologize my poor english  
Regards!
