Overview
Truth Tables can be used to dynamically pass File Data like images to a Form.
Example
In this example, a Truth Table is used to output an image to a Form. The Truth Table is executed by using the output of a random number generator and will output image A if the number is even and image B if the number is odd. The corresponding image is then passed to the Form and displayed to the user.
- In a Designer Project, click CREATE FLOW, select Default, and click CREATE. Name the Flow and click CREATE.
- Click the Done path on the Start step. Navigate to All Steps [Catalog] > Data > Numbers, select the Get Random Int step, and click ADD.

- Enter "99" as a value for Max on the Properties panel.

- Click the Done path and add a Run Truth Table step.

- Click Pick or Create TruthTable. Name the Truth Table and click CREATE.

- Click SETUP INPUT DATA.

- Enter "Company Name" as the Input Data Name and change the Type to Int32 [Number]. Click CLOSE.

- Click Select Data Element and select Company Name. Click CLOSE.

- On the Pick Verb dialog, select Is Even and click CLOSE.

- Hover over the Default Output Data and click the pencil icon. Change the Type to File Data and click OK.

- Select the cell under the Default Output Data column and add a file. Select the checkbox under the Company Name Is Even column. Click CLOSE.

- Click Click To Add Row to add a row and add another file. Click the checkbox on one of the options. Click Save and close the Truth Table.

- Click the Done path and add a Show Form step. Click Pick or Create Form, name the Form and click CREATE.

- Configure the Form to have an Image component (Image) and a Button component (DONE). Click Save and close the Form.

- Select the Image Truth Table. Click Edit Input Mapping.

- Connect Get Random Int_Output to Company Name and click OK.

- Select the Image Form and map Result.All Contents.

- Connect the DONE path to the End step. Click Save to save all changes.

Debug
- On the top action bar, click Debug. Click FULL.
- The debugger will run and will display an image. Click DONE to close the Form. Click CREATE NEW SESSION to generate the Form again.
