Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

constants

This object defines a list of named constants that can be used in expressions or other fields within the PD.

Example:

  {
    "constants": [
      {
        "name": "hardPenalty",
        "def": 1000
      },
      {
        "name": "coverPenalty",
        "def": 500
      }
    ]
  }

Fields for Each Constant:

  • def: The defined value of the constant.
  • name: The name to be used within other areas of the PD.