The code below does not work and I just cannot find any appropiate examples of how to solve it. I need to know how to create the variable. Notice that I need to create the variable name from data in the array. Any ideas?
Thanks, Charles
Code: Select all
# I want to create a variable named "MyVariable100" with a value of "myblacklist"
:local myArray {"Confidence"="100";"mylist"="myblacklist";"mytimeout"="static"}
[:parse :global MyVariable$myArray->"Confidence" $myArray->"myList" ]
/log info "the value is $MyVariable100"