Page 1 of 1
Tank Check for loop..not working...
Posted: Mon May 03, 2004 7:26 pm
by unknwon
Code: Select all
Sub tankcheck
/declare i int local
/For i 1 To ${Group}
/if ( ${String["${tankname}"].Equal[${Group[${i}]]} ) /echo "YES"
/next i
/return
Anyone now ho wto make this work...
Posted: Mon May 03, 2004 8:17 pm
by Preocts
Code: Select all
Sub tankcheck
/declare i int local
/For i 1 To ${Group}
/if (${tankname.Equal[${Group[${i}]}]}) /echo "YES"
/next i
/return
edit: corrected my }s
Posted: Mon May 03, 2004 8:52 pm
by dont_know_at_all
"Mind your Ps an Qs" for the 00s is "mind your { and ["
Specifically, the closing } for ${Group} is missing.
Posted: Mon May 03, 2004 8:58 pm
by Preocts
Ack. Caught with my } down

Still not working..
Posted: Tue May 04, 2004 6:50 pm
by unknwon
get non-numeric error encountered..??not sure how to fix it..
Posted: Tue May 04, 2004 7:13 pm
by Preocts
I'm not sure how to fix it either. You didn't post it.