If -- оператор сравнения, а не цикл. А пример для If вот:
code_28535.txt
Для Case:
Add(HtmlEntryPoint,1103393,63,98) { link(onStart,13786106:doPrint,[]) } Add(Memory,8268933,329,147) { Default=Integer(1) } Add(HTM_Html,13786106,119,98) { link(onPrint,11299526:doEvent,[]) } Add(HTM_Head,10671945,203,98) { link(onPrint,5098852:doPrint,[]) } Add(HTM_Body,15275496,203,203) { link(onPrint,7753521:doPrint,[]) } Add(HTM_Title,5098852,266,98) { link(onPrint,4355443:doPrint,[]) } Add(Hub,11299526,168,98) { link(onEvent1,10671945:doPrint,[]) link(onEvent2,15275496:doPrint,[(192,111)(192,209)]) } Add(VisualText,4355443,329,98) { Lines=#4:Demo| Point(doPrint) } Add(Confirm,2026188,490,210) { Message="ok" } Add(Confirm,365627,441,175) { Message="error" } Add(HTM_Script,7753521,266,203) { link(onPrint,3358366:doCase,[]) } Add(Case,3358366,329,203) { Value=Integer(1) link(onNextCase,7307635:doCase,[(373,209)(373,174)]) link(onTrue,2026188:doConfirm,[]) link(Data,8268933:Value,[]) } Add(Case,7307635,385,168) { Value=Integer(2) link(onTrue,365627:doConfirm,[]) }
Для For:
Add(HtmlEntryPoint,1103393,77,105) { link(onStart,13786106:doPrint,[]) } Add(HTM_Html,13786106,133,105) { link(onPrint,11299526:doEvent,[]) } Add(HTM_Head,10671945,217,105) { link(onPrint,5098852:doPrint,[]) } Add(HTM_Body,15275496,217,210) { link(onPrint,7753521:doPrint,[]) } Add(HTM_Title,5098852,280,105) { link(onPrint,4355443:doPrint,[]) } Add(Hub,11299526,182,105) { link(onEvent1,10671945:doPrint,[]) link(onEvent2,15275496:doPrint,[(206,118)(206,216)]) } Add(VisualText,4355443,343,105) { Lines=#4:Demo| Point(doPrint) } Add(Confirm,2026188,462,210) { } Add(HTM_Script,7753521,280,210) { link(onPrint,596606:doFor,[]) } Add(For,596606,343,210) { End=10 link(onEvent,5158966:doRandom,[]) } Add(Random,5158966,406,210) { link(onRandom,2026188:doConfirm,[]) }
Для While:
Add(HtmlEntryPoint,1103393,77,105) { link(onStart,13786106:doPrint,[]) } Add(Memory,8268933,343,154) { Default=Integer(0) } Add(HTM_Html,13786106,133,105) { link(onPrint,11299526:doEvent,[]) } Add(HTM_Head,10671945,217,105) { link(onPrint,5098852:doPrint,[]) } Add(HTM_Body,15275496,217,210) { link(onPrint,7753521:doPrint,[]) } Add(HTM_Title,5098852,280,105) { link(onPrint,4355443:doPrint,[]) } Add(Hub,11299526,182,105) { link(onEvent1,10671945:doPrint,[]) link(onEvent2,15275496:doPrint,[(206,118)(206,216)]) } Add(VisualText,4355443,343,105) { Lines=#4:Demo| Point(doPrint) } Add(Confirm,2026188,406,266) { Message="end" } Add(HTM_Script,7753521,280,210) { link(onPrint,1168190:doWhile,[]) } Add(While,1168190,343,210) { link(onWhile,10165163:doOperation,[]) link(onStop,2026188:doConfirm,[(391,223)(391,272)]) link(Data,11623455:Var2,[]) } Add(Math,10165163,406,210) { Op2=1 link(onResult,8268933:doValue,[(453,216)(453,146)(331,146)(331,160)]) link(Op1,11623455:Var3,[(412,194)]) } Add(GetDataEx,11623455,343,189) { link(Data,8268933:Value,[]) }
Практически индентично для всех 4-х операторов.
------------ Дoбавленo в 22.44:
И повтор, кстати
|