Thread: arexx help
View Single Post
Old 19 January 2011, 09:24   #1
jimbobrocks92
Registered User
 
Join Date: Feb 2010
Location: Australia
Posts: 47
arexx help

hi I'm having trouble with my arexx code it runs, but nothing happens here is the listing:

/* my program */

LoopCounter = 0
PlaceValue1 = 0
PlaceValue10 = 0
PlaceValue100 = 0
PlaceValue1000 = 0
do while LoopCounter < 1000
if PlaceValue1 > 9 then
PlaceValue1 = 0
PlaceValue10 = PlaceValue10 + 1
end /* end of IF statement */
if PlaceValue10 < 9 then
PlaceValue10 = 0
PlaceValue100 = PlaceValue100 + 1
end /* end of IF statement */
if PlaceValue100 < 9 then
PlaceValue100= 0
PlaceValue1000 = PlaceValue1000 + 1
end /* end of IF statement */

say "hi!" PlaceValue1000 PlaceValue100 PlaceValue10 PlaceValue1
/* Displays hi! followed by the current value in the PlaceValue Variables */

LoopCounter= LoopCounter +1
end /* end of While statements */

Thanks for any help received

Last edited by jimbobrocks92; 19 January 2011 at 09:26. Reason: added thanks
jimbobrocks92 is offline  
 
Page generated in 0.04518 seconds with 11 queries