Fill Option set data based on a rule

Greetings,

I have a created a data element of type “Yes, No”
I want the value to be yes based on a rule,
so for example if this enrollment is in the past 14 days time period i want this data element to be yes otherwise no

So i created a program rule variable that reads from a data element, and if the days between the current date and the enrollment date is less than or equal to 14, set the data element == True,
but it’s typing it as “True” in the data element instead of ticking the data element “Yes”

Hello I think you have to use numerical value like dataElement = 0 for No and dataElement =1 for Yes.