Öèòàòà(SEREDA @ Jun 29 2010, 18:33)

ÇÄÐÀÂÑÒÂÓÉÒÅ. ÌÍÅ ÍÓÆÍÎ ÁÛËÎ ÇÀÏÈÑÀÒÜ Â Var Eqn (ÏÅÐÅÌÅÍÍÛÅ È ÓÐÎÂÍÅÍÈß) ÑËÅÄÓÞÙÅÅ ÍÅÐÀÂÅÍÑÒÂÎ: U= 12 ÅÑËÈ T<5: ÅÑËÈ 5<T<10 ÒÎ U=15: ÅÑËÈ Ò>10 ÒÎ U=20. ÈËÈ ×ÒÎÒÎ Â ÝÒÎÌ ÐÎÄÅ. Â ËÈÒÅÐÀÒÓÐÅ ÊÎÒÎÐÀß Ó ÌÅÍß ÅÑÒÜ ÝÒÎÃÎ ÍÅ ÏÐÈÂÎÄÈÒÑß. ÇÀÐÀÍÅÅ ÁËÀÃÎÄÀÐÞ.
Use of if...then...else...endif statements An equation can use a conditional statement: if ( conditional expression) then ( expression1) else (expression2) endif. For example,
X = 1
Y = if ( X>0) then ( cos( pi/8) ) else ( sin( pi/8) ) endif
The conditional expression can be a simple or complex numeric conditional expression with arguments separated by the standard symbols:
< > <= >= = != &&
Each expression can be any valid numeric expression. The entire if...then...else...endif expression must be on one line.