EAGLE Help Light

Conditional Expression

A conditional expression uses the conditional operator to make a decision within an expression.

Příklad


int a;
// ...code that calculates 'a'
string s = a ? "True" : "False";


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH