Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > SDL script for generating code > SDL script extensions for TDK > Conditional statement (SDL script)
  
Conditional statement (SDL script)
This topic applies to TDK SDL script extensions. For more information, see Overview of SDL script extensions for TDK (SDL script).
SDL Script Extensions for TDK:
GreaterValue = (? B > C ? B : C ?)
(? ConditionalExpr ? TrueExpr : FalseExpr ?) is similar to the standard C "?..:" construct. Returns TrueExpr if ConditionalExpr evaluates to true, FalseExpr otherwise.
Cannot be used in left (lvalue) contexts.
The Rules for ConditionalExpr are the same as for %if conditions.