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.