1) Better array support and text strings in arrays.
So you can now do things like:
Code: Select all
$mProductionTable[] =
{ // itemnum display name image size
230, "Special Item 1", "red.jpg", 13,
250, "Special Item 2 (250)", "blue.jpg", 27,
}
Event( "Custom", "TestArray" )
{
$read1ItemNum = $mProductionTable[1]
$read1ImageName = $mProductionTable[3]
*say ItemNum = $read1ItemNum Image name = $read1ImageName
$mProductionTable[7] = "Amended.jpg"
}
2) While loops.
finally
Code: Select all
Event( "Custom", "TestWhile" )
{
$X = 0
while( $X < 5 )
{
DoSomeFunction()
$X += 1
}
}
One day soon I'll post some more script examples making use of this stuff.