Jaa


Conditional Statements

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

In programming languages such as X++, you can specify conditions under which a block of code must be executed or skipped. Each conditional test evaluates to either true or false.

Different X++ keywords offer advantages depending on the details of the situation. This section has topics that describe these conditional keywords.

In This Section

if and if ... else Statements

Switch Statements

Comparison of if and switch Statements

Ternary Operator (?)

See also

Statements and Loops

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.