Groovy web console

subscribe to the feed Subscribe
to this
Element contained in List (via #groovywebconsole)
tweet this snippet Tweet

Element contained in List

Published 1 year ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
// (testName.indexOf('WebApp')!=-1 || testName.indexOf('importLicense')!=-1 || 
//  testName.indexOf('importTunnel')!=-1 || testName.indexOf('override')!=-1)

// the code above can be replaced by the code below
def testName = 'override'
println testName in ['testA','testB']
println testName in ['WebApp','importLicense','importTunnel','override']