Perhaps this will work:
Names Default To Here( 1 );
dt = New Table( "Test",
Add Rows( 10 ),
Compress File When Saved( 1 ),
New Column( "item",
Character,
"Nominal",
Set Values( {"item1", "item1", "item1", "item1", "item1", "item2", "item2", "item2", "item2", "item2"} )
),
New Column( "Param1", Character, "Nominal", Set Values( {"", "A", "", "", "", "", "", "B", "", ""} ) ),
New Column( "Param2", Character, "Nominal", Set Values( {"A", "A", "A", "A", "A", "B", "B", "B", "B", "B"} ) ),
New Column( "Param3", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [., ., ., ., ., ., ., ., ., .] ) )
);
Wait( 3 );
group = .;
For Each Row(
If(
dt:Param1 == dt:Param2,
dt:Param3 = 1;
group = dt:Param2;,
dt:Param2 == group, dt:param3 = 1,
.
)
);
Georg