# 'If-like' behaviour for GhPlayer inputs

**URL:** <https://discourse.mcneel.com/t/if-like-behaviour-for-ghplayer-inputs/165393>\
**Category:** Grasshopper\
**Tags:** windows, grasshopperrhino, player, grasshopperplayer, grasshopper-player\
**Created:** [September 11, 2023, 2:00pm UTC](https://discourse.mcneel.com/t/if-like-behaviour-for-ghplayer-inputs/165393 "2023-09-11T14:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.nijkamp](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/l.nijkamp/32/478112_2.png) [@l.nijkamp](https://discourse.mcneel.com/u/l.nijkamp)\
**Post date:** [September 11, 2023, 2:00pm UTC](https://discourse.mcneel.com/t/if-like-behaviour-for-ghplayer-inputs/165393/1 "2023-09-11T14:00:00Z")

</div>

Hello,

I am working on a GhPlayer file where i’m asking the user to input the length, width and height of a plate. I then ask the user if they want perforations in this plate. When the answer is ‘yes’ (or true for that matter) then they should answer questions about these perforations (pitch, slots or circles, diameter/width, etc.).

I have tried using a stream filter to select a certain path, but GhPlayer always asks every input. Is there a way to block the asking of an input if it is irrelevant because of an earlier question?

Many thanks!

---

<div class="post-metadata">

**Author:** ![Gijs](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gijs/32/769882_2.png) [@Gijs](https://discourse.mcneel.com/u/Gijs)\
**Post date:** [September 27, 2023, 10:53am UTC](https://discourse.mcneel.com/t/if-like-behaviour-for-ghplayer-inputs/165393/2 "2023-09-27T10:53:45Z")

</div>

hi @l.nijkamp that makes sense. I added [RH-77335](https://mcneel.myjetbrains.com/youtrack/issue/RH-77335) Conditional input for grasshopper player

---

<div class="post-metadata">

**Author:** ![l.nijkamp](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/l.nijkamp/32/478112_2.png) [@l.nijkamp](https://discourse.mcneel.com/u/l.nijkamp)\
**Post date:** [September 27, 2023, 12:05pm UTC](https://discourse.mcneel.com/t/if-like-behaviour-for-ghplayer-inputs/165393/3 "2023-09-27T12:05:02Z")

</div>

Thank you! I expect that this will end up at the bottom of the ‘To-Do’ list. Do you have any workarounds for the time being?

---

<div class="post-metadata">

**Author:** ![Gijs](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gijs/32/769882_2.png) [@Gijs](https://discourse.mcneel.com/u/Gijs)\
**Post date:** [September 27, 2023, 12:16pm UTC](https://discourse.mcneel.com/t/if-like-behaviour-for-ghplayer-inputs/165393/4 "2023-09-27T12:16:29Z")

</div>

> [@l.nijkamp](#):
>
> any workarounds

Convert your code into a (python) script? Based on your description that should not be too difficult
