Appendix A 511
Additional Lab Exercises
Records
Solution—Manipulating Records, Step 2
Figure A-28 shows manipulating records, step 2.
Figure A-28. Manipulating Records, Step 2
Key Points
n Using a Conditional Expression: VEE supports a conditional
expression, which provides an efficient way to implement an if-then-else
action. The conditional expression in this
Formula object is known as a
triadic. It is
(a.rand < 0.5? a.rand: "More than 0.5"). Notice
that it is all one expression, and you can write it with line breaks in the
Formula object as shown. If there were more than one expression in the
Formula object, the expressions would be separated with semi-colons
(
;).
n The Sub Record Object: Notice the
Text array of the fields on the Sub
Record
input pin labeled fields. When you configure the Sub Record
object to include fields, it will output a record that only contains the
fields specified.