Hello
When I write this script in a scripted field
def pliance = getCustomFieldValue("pliance")
log.warn(".."+pliance+"..")
if (pliance.equals("No")){ return 1}
else return 5
pliance is single select drop down. No matter what I select Yes or No, I get value 5
I tried
- if (pliance.equals("No"))
- if (pliance.equals('No'))
Log value shows ..No.. properly as expected.
Couple of questions:
1. What is difference of using " vs ' in the if statement
2. Any idea why it is not retuning 1
Thanks
Abe