I would like to create an array evaluated at runtime as follows: vars.myarray = {{ var temparray = [] temparray.add(1) temparray.add(2) return temparray }}
whose array elements can then be referenced within another runtime variable as follows: vars.mystuff = {{ if (macro("$myarray$")[1] == 2) { ... } }} But this isn't working and I'm having a difficult time trying to figure out the correct syntax to do this. What's the correct way ? -- --- Michael Martinez http://www.michael--martinez.com _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users