# Meaning of "with output" in code blocks?

**URL:** https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718
**Category:** Questions about Thunkable X
**Created:** [September 8, 2020, 1:45pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718 "2020-09-08T13:45:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mrpedoe](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mrpedoe](https://community.thunkable.com/u/mrpedoe)
#### Post date: [September 8, 2020, 1:45pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/1 "2020-09-08T13:45:25Z")

</div>

Hello,

I feel like I’m missing something obvious, but I don’t understand the meaning of the “with output” part of several code blocks. For example, Sound.Play and Alert.Show both include a line that says “with output” that does not seem to have any identifiable purpose.

Thanks in advance for any help!

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [September 8, 2020, 4:22pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/2 "2020-09-08T16:22:21Z")

</div>

The output content varies from block to block.

![Screen Shot 2020-09-08 at 9.20.08 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/2/b2f0081e3097b51156ff6efdee97273aedcfc52c.png)

For Sound–\>Play, the output is _error_ which is a text string containing an error message about why the sound file could not be played.

For Alert–\>Show, the output tells you whether or not the user has clicked the confirmation button.

You can drag the green blocks into Label display blocks, If/Then blocks, etc. if you need that information.

---

<div class="post-metadata">

### Author: ![mrpedoe](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mrpedoe](https://community.thunkable.com/u/mrpedoe)
#### Post date: [September 8, 2020, 5:58pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/3 "2020-09-08T17:58:29Z")

</div>

Thank you for the explanation! I now understand that the “with output” line refers to the block below it. I was thinking they were separate. It’s odd they’re on different lines.

Now I’m trying to figure out how to do some basic canvas manipulation. I thought I’d try to get circles drawn wherever the user touches. However, I seem to misunderstand what the “pointer” block’s purpose is, shown in the code below:

![pointer question](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8b074bf1dae0c86cc43540363ae1501648a1de04.png)

What is the “pointer” block for and how is it used? By using it to set a label’s text, it just shows “0”, implying it’s empty?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [September 8, 2020, 11:32pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/4 "2020-09-08T23:32:47Z")

</div>

I’ve never used the canvas so I’m probably not the best person to answer but I’ll take a crack at it anyway. It looks like you’re using it correctly with pointer’s x and pointer’s y. But pointer would be an object with various properties so trying to view it with a Label won’t work (or will return an error).

I would try setting a Label’s Text to pointer’s x or pointer’s y and see if it’s returning values you are expecting.

The documentation looks a little different than what you have: [https://docs.thunkable.com/motion#get-pointer-value](https://docs.thunkable.com/motion#get-pointer-value)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [September 9, 2020, 12:06pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/5 "2020-09-09T12:06:37Z")

</div>

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/10518ebe4caaef605ddd6dd91da3aa56119081fc.png)

---

<div class="post-metadata">

### Author: ![mrpedoe](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mrpedoe](https://community.thunkable.com/u/mrpedoe)
#### Post date: [September 10, 2020, 2:23am UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/6 "2020-09-10T02:23:31Z")

</div>

Thank you both for the quick replies! Unfortunately, I wasn’t clear in my question. I had read the documentation and seen that example, but am confused on what the point of the “pointer” parameter is. I’ll try to rephrase: if you’re supposed to access pointers through Canvas1.activePointer then why have a pointer parameter? What is it for?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [September 10, 2020, 7:20am UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/7 "2020-09-10T07:20:50Z")

</div>

This parameter “pointer” contains the number of fingers that touch the screen at the same time. It can be from 1 to 4 and more touches. If one finger is touched, it is equal to the active pointer.

---

<div class="post-metadata">

### Author: ![mrpedoe](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mrpedoe](https://community.thunkable.com/u/mrpedoe)
#### Post date: [September 10, 2020, 3:01pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/8 "2020-09-10T15:01:37Z")

</div>

Thank you!

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:24pm UTC](https://community.thunkable.com/t/meaning-of-with-output-in-code-blocks/801718/9 "2024-11-08T12:24:01Z")

</div>


