Juniper-systems Allegro CX Manual Uživatelský manuál Strana 170

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 304
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 169
170 Allegro CX Owner’s Manual
Examples:
if a1<>0 then Set(c1, b1/a1) end
if a1=0 then
Set(c1, “Sorry...”)
else
Set(c1, b1/a1)
end
While Statement
while condition
commands
end
Executes commands as long as a condition is True.
Example:
while a1>0
Set(CellRef(2, a1), a1*100)
Set(a1, a1-1)
end
For Statement
for counterVariable = startValue to endValue [step stepValue]
commands
end
Repeats commands a specifi ed number of times.
Example:
for i = 1 to 10
Set(CellRef(1, i), i)
end
for j = 1 to 100 step 10
Set(a1, a1*j)
end
Zobrazit stránku 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 303 304

Komentáře k této Příručce

Žádné komentáře