this code runs and gives me no errors but the while part does not seem to work
function main()
{
declare t int local 1
do
{
echo ${t}
varcalc t ${t}+1
}
while ${t}<=10
}
it displays the value being increase but it get to 10 and past 10 never stoping the do while loop
do while
Moderators: Lavish Software Team, Moderators
< has special meaning unless it is used within quotes
Code: Select all
function main()
{
declare t int local 1
do
{
echo ${t}
varcalc t ${t}+1
}
while "${t}<=10"
}