# Output from script?

**URL:** <https://discussions.unity.com/t/output-from-script/396270>\
**Category:** Scripting\
**Tags:** Scripting\
**Created:** [August 11, 2009, 9:07am UTC](https://discussions.unity.com/t/output-from-script/396270 "2009-08-11T09:07:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_34313868](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anon\_34313868](https://discussions.unity.com/u/anon_34313868)\
**Post date:** [August 11, 2009, 9:07am UTC](https://discussions.unity.com/t/output-from-script/396270/1 "2009-08-11T09:07:21Z")

</div>

Hello

I’m new to this forum aswell as to unity, just evaluating the indie unity version and i have a quick questions which i couldn’t solve by searching the forum so far:

Is there a possibility to get some output from a script? I just want to check wether a certain bit of code behind an “IF”-command is executed at all and what value was making the deciding factor in the comparison…

cheers  
Oliver

---

<div class="post-metadata">

**Author:** ![anon\_47300683](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon\_47300683](https://discussions.unity.com/u/anon_47300683)\
**Post date:** [August 11, 2009, 9:13am UTC](https://discussions.unity.com/t/output-from-script/396270/2 "2009-08-11T09:13:17Z")

</div>

```auto
bool canWeDoThat = true;
if (canWeDoThat)
   Debug.Log("Can we do that? " + canWeDoThat);

```

---

<div class="post-metadata">

**Author:** ![anon\_34313868](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anon\_34313868](https://discussions.unity.com/u/anon_34313868)\
**Post date:** [August 11, 2009, 9:40am UTC](https://discussions.unity.com/t/output-from-script/396270/3 "2009-08-11T09:40:08Z")

</div>

Thanks a lot!
