Here are 3 different ways to do this:
Names Default To Here( 1 );
dt = Current Data Table();
For Each Row(
If( :Fruit == "Mango",
:Color = "Black";
:Quantity = 10;
)
);
Names Default To Here( 1 );
dt = Current Data Table();
For( i = 1, i <= N Rows( dt ), i++,
If( :Fruit[i] == "Mango",
:Color[i] = "Black";
:Quantity[i] = 10;
)
);
Names Default To Here( 1 );
dt = Current Data Table();
Try( :Color[dt << get rows where( :Fruit == "Mango" )] = "Black" );
Try( :Quantity[dt << get rows where( :Fruit == "Mango" )] = 10 );
Jim