Create a Simple condition
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Simple conditions can be used to create simple constraints. For example, you could set up a condition to indicate that a user cannot select a red lamp shade while configuring a lamp, if he or she has selected plastic for the material. If the user selects a red shade, 'Plastic' would not be available for material. Simple conditions consist of a field compared with a value. Simple conditions can consist of one or more lines. In that case, the lines are combined by a logical OR.
Note
This information applies only to Product builder.
Array variables can be referred to either by number or without number. If used without number, the expression is applied to any index value.
Click Product information management > Common > Product builder > Product models. Select a product model. On the Action Pane, click the Models tab. In the Modify group, click Open > Validation.
In the lower pane, click the Condition tab.
Press CTRL+N to create a new condition.
Select Simple in the Type field.
In the Simple condition field group, press CTRL+N.
In the Variable field, select the variable that will be used for the condition.
If the selected variable belongs to the array group, type its number in the Index field.
In the Operator field, select an operator for the current line.
In the Type, select whether the variable specified in the Variable field will receive a specific value or will be calculated according to a formula.
If you selected Value, specify it in the Value field.
If you selected Calculated, click Calculated to create a formula.
Click the Message tab to create a message that will appear if the condition is TRUE. Select the language that you will write the message in, and then type the message text.