Assigns to an attribute or variable, a value that results from evaluating an expression (or a fixed value or a value stored in an attribute or variable).
Attribute assignments imply a database update.
att | &var = expression [ If condition ] [ on triggering event];
att | &var
Is the attribute or variable to be assigned. In the case of being an attribute, it cannot be a formula.
Is any valid expression that can involve constants, functions, variables, or other attributes (the result must match the attribute or variable type definition).
Is any valid logic condition (that can contain the "and", "or", and "not" logical operators).
Is one of the predefined events available in GeneXus for transaction rules, which allows you to define the precise time for executing a rule.
CustomerAddedDate = today() if insert;
CustomerLastUpdateDate = today();
&DiscountPercentage=10 if CustomerAddedDate.year() < 2011;
Assignment command for variables
Assignment command for attributes