Syncopation Software

DPL 9 Help

The Dont Prefix (DPL Code)

The Dont Prefix (DPL Code)

Occasionally, you may wish to temporarily remove a lottery from the sequence section of your model by attaching a don't gamble specification. To don't a gamble, simply type the word dont (no apostrophe!) in front of the keywords gamble or take a chance on. Values that depend on the outcome of the lottery will be replaced with expected values.

chance A.{3} = {.2,.3} = 10, 20, 30;
sequence:
   dont gamble on A and get A

This tree now has one path. The expected value is 23.

The dont prefix only applies to the lottery it precedes. It does not apply to other occurrences of the same lottery elsewhere in the sequence section.

If you would prefer to remove the lottery by controlling it to a single state, use set instead.

Versions: DPL Professional, DPL Enterprise, DPL Portfolio

See Also

The Sequence Section

The Definition Section

Setting the State of an Event