Creating A Script File

Equivalence Testing (== !=)

The == and != operators allow you to check that a variable is set to a particular value. For example, the following lines could be inserted between the 6th and 7th lines in the above sample code to provide a check for a specific value:

else if (Input == 5)

wrt "That's the value I wanted_n_r"

or alternatively, replace the 7th and 9th lines with the following:

else if (Input != 5)

wrt ("That's not the value I wanted_n_r)

Division Operators (/ %)

The / operator performs a straight forward division operation on two numerics. If the variable receiving the result of the operation is a float then the defined variable would hold the exact value, otherwise, with an integer variable, the result would be rounded down to the nearest integral value. For example:

var %Int var !Float

Int = Float = 5.0 / 2

wrt "Float result of 5.0 / 2 = ", Float, "_n_r" wrt "Int result of 5.0 / 2 = ", Int, "_n_r" exit

would print the two lines:

Float result of 5.0 / 2 = 2.50000

Int result of 5.0 / 2 = 2

Note that the expression 5.0 / 2 is specified, and not 5 / 2. This is to ensure that the language interpreter performs the arithmetic operation using floats instead of the default of integers. So if the third line was Int = Float = 5 / 2 the result would be:

Float result of 5 / 2 = 2.00000

Int result of 5 / 2 = 2

The % operator will only work on integer operations. If a floating point operation contains this operator, the system flag will be set to FALSE, indicating an error, and the rest of the line will be ignored. The operator is provided as a means to achieve the remainder of the result of an integral divide. For example:

var %Int Int = 5 % 2

wrt "result of 5 % 2 = ", Int, "_n_r" exit

would print the line:

result of 5 % 2 = 1

12-15

Page 219
Image 219
Xerox 07W & -11W, 05W manual 12-15, Equivalence Testing == !=, Division Operators / %

07W & -11W, 05W specifications

Xerox has long been a leader in the field of imaging and printing technology, and its innovative product lines consistently push the boundaries of performance and functionality. Among these products, the Xerox 05W, 07W, and 11W series stand out as versatile multifunction printers that cater to the needs of various businesses.

The Xerox 05W series is designed with small to medium-sized businesses in mind. It boasts a compact footprint without sacrificing performance. One of the key features of the 05W is its high-resolution printing capability, delivering crisp, vibrant documents at impressive speeds. The series supports a variety of media types and sizes, making it ideal for diverse office environments. Additionally, the 05W incorporates user-friendly controls and an intuitive interface, allowing employees to navigate its functions with ease.

Moving up the range, the Xerox 07W series offers enhanced features geared towards organizations that require increased productivity. This series includes advanced scanning capabilities, allowing users to digitize documents quickly and efficiently. The 07W is compatible with a range of cloud services, facilitating seamless document sharing and collaboration. Enhanced security features, such as secure print and user authentication, make it a suitable choice for businesses that prioritize data protection.

At the top of the lineup, the Xerox 11W series is a powerhouse, designed for high-volume printing environments. It combines speed with quality, boasting robust performance metrics that can handle demanding workflows. The 11W series incorporates cutting-edge technologies such as automatic duplexing, which saves time and paper, and advanced finishing options, providing users with professional-quality documents. The series also supports mobile printing solutions, enabling users to print directly from their smartphones or tablets.

All three series – 05W, 07W, and 11W – share a commitment to sustainability, employing energy-efficient technologies that reduce environmental impact without compromising performance. They also come equipped with comprehensive support options, ensuring customers have access to expert assistance when needed.

In summary, the Xerox 05W, 07W, and 11W series cater to different business needs, ranging from compact functionality to robust performance. They incorporate advanced technologies and key features that enhance productivity, security, and sustainability, making them suitable for a wide array of professional environments. With their reliability and versatility, these printers continue to uphold Xerox's legacy as a leader in the imaging and printing industry.