Never use numbers unless you are in the console, and have then from a print, in scripts you use [find ]. The are very few exception to this rule. and as you have seen your self, it may work i one situation, but not nesseserely in an other, thats why you never use numbers in scripts. There are some internal reasons for this, so it is by design.
So instead of “get” i use "find " to set the variable…find the sa-src-address in the policy numbered 20? How do I find the sa-src-address in ipsec policy #20…
what else is it called besides the sa-src-address in ipsec policy # 20?
find a unique comment in the policy to identify it, then grab the sa-src-address…i quess.