How to use Check filter in script report!

In script report, how can I use Check to make some code !
here is my code

def get_data(filters):
if filters.submitted==0:
code

It didnt work with me !
thanks

Please Explain more

I want to use the check field like data feild

{
“fieldname”: “submitted”,
“label”: __(“Submitted”),
“fieldtype”: “Check”
},

This is the js code

@OmarJaber,

Try filters.get("submitted") instead of filters.submitted.

Thanks, Makarand

2 Likes