Forum: CFEngine Help Subject: Re: multidimensional array usage Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23753,23755#msg-23755
You could get them through an intermediate array built using implicit looping. Something like this (untested): "hostnames" slist => getindices("servers"); "ip_array[$(hostnames)]" string => "$(servers[$(hostnames)][1])"; "ip_slist" slist => getvalues("ip_array"); _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine