I'm hoping someone will tell me I'm missing something obvious.
I'm trying to find a way for a RouterOS script to test if an array is a simple list of values, an associative array (key,value pairs), or a multi-dimensional array (a list of array's within a array). [Descriptions in brackets in case I'm using the wrong terms]
For use in this script (its not 100% yet) https://gist.github.com/mike548141/ba12 ... cc2887f6d6
:typeof does not distinguish the type of array, is there another command or a way to test?
Thanks,
MC
I'm trying to find a way for a RouterOS script to test if an array is a simple list of values, an associative array (key,value pairs), or a multi-dimensional array (a list of array's within a array). [Descriptions in brackets in case I'm using the wrong terms]
For use in this script (its not 100% yet) https://gist.github.com/mike548141/ba12 ... cc2887f6d6
:typeof does not distinguish the type of array, is there another command or a way to test?
Thanks,
MC
Statistics: Posted by mike548141 — Mon Feb 12, 2024 9:40 am