# Perspective - Scripting - Valid if view exists

**URL:** <https://forum.inductiveautomation.com/t/perspective-scripting-valid-if-view-exists/48128>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [June 23, 2021, 6:13pm UTC](https://forum.inductiveautomation.com/t/perspective-scripting-valid-if-view-exists/48128 "2021-06-23T18:13:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [June 23, 2021, 6:13pm UTC](https://forum.inductiveautomation.com/t/perspective-scripting-valid-if-view-exists/48128/1 "2021-06-23T18:13:35Z")

</div>

8.1.7

Is their a trick to check if a view exist ?

I want to root an embeded view according to the existance or not of a view.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [October 25, 2022, 11:50am UTC](https://forum.inductiveautomation.com/t/perspective-scripting-valid-if-view-exists/48128/2 "2022-10-25T11:50:03Z")

</div>

Did you ever work out a way to do this?

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [October 25, 2022, 2:33pm UTC](https://forum.inductiveautomation.com/t/perspective-scripting-valid-if-view-exists/48128/3 "2022-10-25T14:33:50Z")

</div>

Yes I did, you can valid if view exist by using system.perspective.getProjectInfo()["views"]
