The second example demonstrates how to insert tokens in your formulas to create more complex custom tokens.
1. Insert a plot and a text box on a layout page. Open the Custom Token window and dock it.
2. Click on (Add) in the docked Custom Token window.
3. Edit New Custom Token to read "Math Calc with Token".
4. Enter = in the Formula area below the splitter. Note: FCS Express 6 uses Excel-style formula evaluation. Therefore, formulas must start with "=".
5. Choose the Data Source of the token by either of the following methods:
•right-click in the Formula area (lower pane of Custom Tokens window) and choose Insert Token from the pop-up menu. Select Statistic and click on the Insert button, and choose a plot from the Data Source category
•drag and drop the desired gate or plot from your layout into the lower pane of the Custom Tokens window, and double-click Statistic token.
6. From the Statistic category, highlight # of Events as the statistic. Click OK.
7. In the Formula area, enter "/2" to the right of the token.
8. Click on Mathematical Calculation with a Token to highlight/select it. Your Custom Token formula should look similar to Figure 19.39.
Figure 19.39 Custom Token Example 2
9. Insert the Custom Token you have just created into the Text Box by either of the following methods:
•right-click on the Text Box, choose Insert Token from the pop-up menu, select Math Calc with Token from Custom (clicking on the triangle next to Custom to expand the list, necessary), and click the Insert button, or
•drag and drop Math Calc with Token from the Custom Token List (upper pane of the Custom Tokens window) to an empty spot on your layout or to an existing Text Box.
The Text Box should now display the number of events in your dataset divided by 2.