# Flag between different platform

**URL:** https://discussions.unity.com/t/flag-between-different-platform/8392
**Category:** Questions & Answers
**Created:** [October 10, 2010, 3:38am UTC](https://discussions.unity.com/t/flag-between-different-platform/8392 "2010-10-10T03:38:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/system/32/97283_2.png) [@system](https://discussions.unity.com/u/system)
#### Post date: [October 10, 2010, 3:38am UTC](https://discussions.unity.com/t/flag-between-different-platform/8392/1 "2010-10-10T03:38:48Z")

</div>

I found iPhone to Mouse Input C# script which might be useful for testing on window if I Can replace that iPhoneInput with Generic Input (Unity 3.0)... How can I know whether we are testing and building for iPhone or Windows? Does the unity has any #ifdef flags something like

ifdef iPhone

DOSomething();

endif

ifdef PC

DOSomething();

endif

---

<div class="post-metadata">

### Author: ![anon85704231](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@anon85704231](https://discussions.unity.com/u/anon85704231)
#### Post date: [October 10, 2010, 4:26am UTC](https://discussions.unity.com/t/flag-between-different-platform/8392/2 "2010-10-10T04:26:44Z")

</div>

You can use #if, #elseif and #else for platform dependent compilation

The defines you can use with it are described here:

[http://unity3d.com/support/documentation/Manual/Platform%20Dependent%20Compilation.html](http://unity3d.com/support/documentation/Manual/Platform%20Dependent%20Compilation.html)
