Page 1 of 1

EchoLog echos and logs a string

Posted: Sat Sep 11, 2004 8:50 am
by Sparr
i got tired of having to /echo and /mqlog everything seperately...

Code: Select all

Sub EchoLog
 /declare out string local
 /declare paramnum int local
 /for paramnum 0 to 20
  /if (${Param${paramnum}.Length}) /varset out ${out} ${Param${paramnum}}
 /next paramnum
 /echo ${out}
 /mqlog ${out}
/return

Posted: Sat Sep 11, 2004 2:20 pm
by Night Hawk
Is there a general highest number of loops you wanna use in a loop? Just a little curious. Anyhow, this is indeed a helpful snippet.

Posted: Sat Sep 11, 2004 3:02 pm
by Cr4zyb4rd
Alan Turing proved that no loop executes more than seven times. Ever.