Trying to set up a behaviour for a select list where the option in the list is a number

TS037651
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2024

Trying to set up a behaviour for a select list where the option in the list is numeric, not working as expected, when the option is not numeric it's working. Would someone be able to tell me what I'm doing wrong?

def selectVal = dropDown.getValue()


if (selectVal.toString().contains("1")) {
This one is working as expected

 

if (selectVal.toString().contains("Not a Tool")) {

0 answers

Suggest an answer

Log in or Sign up to answer