Compare Function
You can use the compare function to determine whether or not a command executes
(also known as a conditional instruction execution). For example, you might set a jump
command to go to a track, but use the compare function to make sure the DVD player
supports its aspect ratio. If the compare function is not satisfied, the command is skipped
and the script moves down to the next command.
A compare function compares a specified element, which you select, with a value in a
specified GPRM. You choose how to compare the two elements from a list of operations
(equal to, greater than, and so on).
Choose the element type.
Choose the compare
operation.
Enables the compare
function.
Choose the actual
element.
Choose the GPRM
register.
To configure a compare
1
In the Script Command Inspector, select the Compare Command checkbox to activate
the compare settings.
2
Choose the GPRM location to compare to the selected element from the “Execute if”
pop-up menu.
3
Choose the compare operation type from the “is” pop-up menu.
4
Choose the type of elements to compare from the “to” pop-up menu.
5
Choose the actual element to compare to the GPRM from the “with value” pop-up menu.
490
Chapter 20
Creating Scripts