Getting Started with the f5-common-python SDK
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Instead of calling putstring (puts) in the for loop, you can create a variable (var) and then append each iteration through the for loop to that with a comma, then call puts afterward. Mocked up below:
% set str "ab cd ef gh ij kl mn op qr st uv wx yz"
% set var ""
% foreach c $str { append var $c, }
% puts $var
ab,cd,ef,gh,ij,kl,mn,op,qr,st,uv,wx,yz,