# Function Creation

**URL:** <https://community.thunkable.com/t/function-creation/3083143>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [July 2, 2024, 12:16pm UTC](https://community.thunkable.com/t/function-creation/3083143 "2024-07-02T12:16:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![modiga.paul2845ra8a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/modiga.paul2845ra8a/32/179600_2.png) [@modiga.paul2845ra8a](https://community.thunkable.com/u/modiga.paul2845ra8a)\
**Post date:** [July 2, 2024, 12:16pm UTC](https://community.thunkable.com/t/function-creation/3083143/1 "2024-07-02T12:16:11Z")

</div>

Can someone instruct me how to create a function please like the ones in photo i attached? as i have no gear icon on my functions variables. that allow me to do that. Or do i need to upgrade my account?  
 ![Screenshot 2024-07-02 145556](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b39bd11388cafa6039a8763ca7ff19a692de1f5.png)

---

<div class="post-metadata">

**Author:** ![marion.dorsett](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/marion.dorsett/32/175129_2.png) [@marion.dorsett](https://community.thunkable.com/u/marion.dorsett)\
**Post date:** [July 2, 2024, 12:57pm UTC](https://community.thunkable.com/t/function-creation/3083143/2 "2024-07-02T12:57:50Z")

</div>

You can access the function block on the free account.

Go to the Blocks tab, scroll down to functions in the left sidebar, and drag the desired function block into the block editor.

The functions in your image do not return a value.

 ![create-function-00](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18d09af925314380f24f00337b6d4df7e643ce5c.png)

---

<div class="post-metadata">

**Author:** ![modiga.paul2845ra8a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/modiga.paul2845ra8a/32/179600_2.png) [@modiga.paul2845ra8a](https://community.thunkable.com/u/modiga.paul2845ra8a)\
**Post date:** [July 2, 2024, 12:59pm UTC](https://community.thunkable.com/t/function-creation/3083143/3 "2024-07-02T12:59:33Z")

</div>

thank you so much i finally did it 😃

---

<div class="post-metadata">

**Author:** ![marion.dorsett](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/marion.dorsett/32/175129_2.png) [@marion.dorsett](https://community.thunkable.com/u/marion.dorsett)\
**Post date:** [July 2, 2024, 1:05pm UTC](https://community.thunkable.com/t/function-creation/3083143/4 "2024-07-02T13:05:08Z")

</div>

I wish the function blocks were reusable on other screens, but you can copy and paste them… but now you have to maintain the same function over multiple screens and possibly change out the component blocks if you’re using them in the functions.

I’ve found that the app vars have global scope across all screens, so if your function only uses vars, it may not be too bad.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 30, 2024, 1:05pm UTC](https://community.thunkable.com/t/function-creation/3083143/5 "2024-09-30T13:05:53Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
