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 |
Quote:
Dave G :cool |
thx
|
ARexx has a trace/debug function. Look in your manual about how trace works. This will help and you might easily see what happens (wrong). However, for better readability you should use forums its code tag.
Code:
/* Wonderful magical code follows: */ |
Quote:
Code:
IF condition THEN Code:
IF condition THEN |
All times are GMT +2. The time now is 17:42. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.