Jarod King

Greenhorn
+ Follow
since Aug 31, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jarod King

Hello, I am trying to write a groovy script to be able to check a block of config exists.  Currently, when running this command it is looking for config line1-5 anywhere in the config list.  I am more interested in creating a script that will look at the config.contains in order from 1-5.  Example below!

Thanks!


if (config.contains(
   "config line 1"
   ) && config.contains(
   "config line 2"
   ) && config.contains(
   "config line 3"
   ) && config.contains(
   "config line 4"
   ) && config.contains(
   "config line 5"
   ))
{
return 1;
}
else {
return 0;
}[/color]
3 weeks ago