6.0

Table Of Contents
133
Return Values
Code Sample Example
This example sets the variable &resolution to 200 DPI if the resource is a color bitmap, and to 75 DPI if it is
not.
Example
if( eq(resourcetype( ‘employee’ ), 1))
&resolution := 200
elseif
&resolution := 75
endif
Right (function)
Extracts the specified rightmost characters of a string.
Syntax
right( string, number ) string value
Arguments
string — String value from which to extract characters.
number — Integer value specifying how many characters to extract from the end of the string.
Code Sample Example
This example prints part of a string, starting after a specific delimiter.
Return value: Indicates:
0 The resource does not exist or could not be found.
1A color bitmap.
2 A monochrome bitmap.
3 A grayscale bitmap.
4 An Encapsulated PostScript (EPS) image.
5 A PostScript file.
6 A Portable Document Format (PDF) file.