I am trying to check first_item.rulename value is empty or null or starts with 'OptumFormulary' using below code
if (first_item.rulename != '' or first_item.rulename == None or first_item.rulename.startswith('OptumFormulary')):
ruledefinitions_rules = ruledefinitions_rules[1:]
else:
ruledefinitions_rules = ruledefinitions_rules
My first_item.rulename value is '802' but still it is getting inside the if loop condition.
In the snapshot, first_item.rulename is '802' on hovering.