# How to controle Revit yes/no-parameter in schedules

**URL:** <https://forum.dynamobim.com/t/how-to-controle-revit-yes-no-parameter-in-schedules/40333>\
**Category:** Revit\
**Tags:** schedule, dynamo\
**Created:** [September 5, 2019, 10:13am UTC](https://forum.dynamobim.com/t/how-to-controle-revit-yes-no-parameter-in-schedules/40333 "2019-09-05T10:13:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arjanpol](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@arjanpol](https://forum.dynamobim.com/u/arjanpol)\
**Post date:** [September 5, 2019, 10:13am UTC](https://forum.dynamobim.com/t/how-to-controle-revit-yes-no-parameter-in-schedules/40333/1 "2019-09-05T10:13:16Z")

</div>

Hello,

I have built a Dynamo-script for setting filters for a duplicated schedule. As I can’t seem to alter the existing filters, I am clearing all of them and creating new ones. The script works for text-parameters, but when I try to set a Revit yes/no-parameter I get an error. I think this might have something to do with the value I am trying to give the parameter. I have tried using a boolean, yes/no, 0/1 and 1/2, but nothing works.  
I can make it work using a workaround converting the value to an additional text-parameter, but I don’t like that idea very much.  
Does anyone have an idea about how to make this work?

 ![control%20yes-no](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/550cfe745aaaf258a0004829944964cf8a94597f.png)

---

<div class="post-metadata">

**Author:** ![David\_TESSON](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@David\_TESSON](https://forum.dynamobim.com/u/David_TESSON)\
**Post date:** [May 11, 2020, 10:05am UTC](https://forum.dynamobim.com/t/how-to-controle-revit-yes-no-parameter-in-schedules/40333/2 "2020-05-11T10:05:49Z")

</div>

Hi,  
I have same problem and i up this post.  
I’d try with “Yes”, “Oui” (i’m french), 1, “1”, True (boolean node). nothing matches

---

<div class="post-metadata">

**Author:** ![Bjorn\_Keulemans1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bjorn_keulemans1/32/54676_2.png) [@Bjorn\_Keulemans1](https://forum.dynamobim.com/u/Bjorn_Keulemans1)\
**Post date:** [May 11, 2020, 11:17am UTC](https://forum.dynamobim.com/t/how-to-controle-revit-yes-no-parameter-in-schedules/40333/3 "2020-05-11T11:17:51Z")

</div>

> [@ScheduleFilter using y/n](https://forum.dynamobim.com/t/schedulefilter-using-y-n/29698):
>
> Long time no see, forum, Problematic node: ScheduleFilter.ByFielsTypeAndValue What I expected: Creation of filters that could be used to deal with yes/no parameter What I got: Impossible to cast ‘System.Boolean’ into ‘Revit.Elements.Element’. Impossible to cast ‘System.Int64’ into ‘Revit.Elements.Element’. I tried using: Integer, boolean, string converted to int value taken from a manually created filter It used to work by using 0 and 1 as false and true. I get that it want to be fed …
