☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

implied_boolean

Table of contents

Description:

This key toggles whether any value in this argument will alias to true, and an empty value will alias to false.

Setting this key to true will cause any value in this argument to alias to true, and an empty value to alias to false.

By default, this key is false (i.e., values are not aliased to boolean).

Appears in:
└── Snippet Model
    └── implied_boolean
Type:
boolean
Default value:
false
Examples:

In this example, we have configured implied boolean so any value in this argument will alias to true, and an empty value will alias to false.

Copied to clipboard
parser: argument
options:
  model:
    editor_key: has_video_id
    implied_boolean: true
{
  "parser": "argument",
  "options": {
    "model": {
      "editor_key": "has_video_id",
      "implied_boolean": true
    }
  }
}
Open in a new tab