# 'If background picture =' block

**URL:** <https://community.thunkable.com/t/if-background-picture-block/2737943>\
**Category:** Questions about Thunkable X\
**Created:** [December 4, 2023, 9:35am UTC](https://community.thunkable.com/t/if-background-picture-block/2737943 "2023-12-04T09:35:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thwalhathha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thwalhathha/32/165244_2.png) [@thwalhathha](https://community.thunkable.com/u/thwalhathha)\
**Post date:** [December 4, 2023, 9:35am UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/1 "2023-12-04T09:35:06Z")

</div>

Hi,

In my app, I want something to happen if the background picture is a specific one. I tried to do this:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a0487bfad03fcf0acb3c34f8e36554a18a48706b.png)  
But, it is not working. I also tried the blue number block in the math category (  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d2daf22d7c1443dd2b9e60ee8be5711751576ec6.png) ) instead of the pink block, but I can only type numbers in that, and not letters. Any way to solve this?

---

<div class="post-metadata">

**Author:** ![nathanburley21656](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nathanburley21656/32/150307_2.png) [@nathanburley21656](https://community.thunkable.com/u/nathanburley21656)\
**Post date:** [December 4, 2023, 9:49am UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/2 "2023-12-04T09:49:57Z")

</div>

Not sure but I _think_ right now, you’re trying to compare different data types. Your statement there says something like “If this picture right here looks like “3D1” then…” Which doesn’t make sense.

Can you store the image you want to compare against in an app variable and then compare 3DShapesIntro’s Background Picture to the variable instead?

---

<div class="post-metadata">

**Author:** ![thwalhathha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thwalhathha/32/165244_2.png) [@thwalhathha](https://community.thunkable.com/u/thwalhathha)\
**Post date:** [December 4, 2023, 2:37pm UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/3 "2023-12-04T14:37:48Z")

</div>

I’m not saying that the picture looks like 3D1. 3D1 is the name of the background picture

---

<div class="post-metadata">

**Author:** ![nathanburley21656](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nathanburley21656/32/150307_2.png) [@nathanburley21656](https://community.thunkable.com/u/nathanburley21656)\
**Post date:** [December 4, 2023, 2:56pm UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/4 "2023-12-04T14:56:28Z")

</div>

Yeh, I get that. But I’m pretty sure that not what your code is saying. You’re not comparing the ‘name of 3DShapesIntro’s background picture’, you’re seeing if the image itself is the same as the text. They’re not the same data type.

Try storing the image you want to compare as a variable and then comparing the current background image to it.

---

<div class="post-metadata">

**Author:** ![thwalhathha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thwalhathha/32/165244_2.png) [@thwalhathha](https://community.thunkable.com/u/thwalhathha)\
**Post date:** [December 4, 2023, 4:31pm UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/5 "2023-12-04T16:31:14Z")

</div>

K, I’ll try that

---

<div class="post-metadata">

**Author:** ![thwalhathha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thwalhathha/32/165244_2.png) [@thwalhathha](https://community.thunkable.com/u/thwalhathha)\
**Post date:** [December 4, 2023, 4:45pm UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/6 "2023-12-04T16:45:11Z")

</div>

> [@nathanburley21656](#):
>
> They’re not the same data type.

Ohhh, I get it. I solved my problem, but using a different way (not variables) but you were very helpful. Thx!

---

<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:** [March 3, 2024, 4:45pm UTC](https://community.thunkable.com/t/if-background-picture-block/2737943/7 "2024-03-03T16:45:51Z")

</div>

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