LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Aug 26, 2002 5:39 pm |
Convert to stringlists
#VAR BestValues {@BestValue1|@BestValue2|@BestValue3|@BestValue4|@BestValue5}
#VAR BestLocations {@BestLocation1|@BestLocation2|@BestLocation3|@BestLocation4|@BestLocation5}
#VAR BestTRGoods {@BestTRGood1|@BestTRGood2|@BestTRGood3|@BestTRGood4|@BestTRGood5}
Then just insert the new values at the appropriate points in the lists, dropping the last item. Since you used specific values (Gdangus and Bananas) instead of variables for BestLocation1 and BestTRGood1, you'll have to change those to the appropriate variable yourself.
#IF (@vBananas > %item( @BestValues, 1}) {#VAR BestValues {@Bananas|%item( @BestValues, 1)|%item( @BestValues, 2)|%item( @BestValues, 3)|%item( @BestValues, 4)};#VAR BestLocations {Gdangus|%item( @BestLocations, 2)|%item( @BestLocations, 3)|%item( @BestLocations, 4)};#VAR BestTRGoods {Bananas|%item( @BestTRGoods, 2)|%item( @BestTRGoods, 3)|%item( @BestTRGoods, 4)}}
#IF ((@vBananas <= %item( @BestValues, 1)) AND (@vBananas > %item( @BestValues, 2))) {#VAR BestValues {%item( @BestValues, 1)|@Bananas|%item( @BestValues, 2)|%item( @BestValues, 3)|%item( @BestValues, 4)}
LightBulb
Senior Member |
|