Code

Code

{{ code }}

Properties of {{ code }} objects
Name Type Description
is_valid Boolean True if the value is not empty
value String User-defined. No validation. Could be anything
code_type String The type of code the value is written as - will either be null, js, css, less, scss, or liquid
default_value String The default value for this field if no value is specified
field_id String The identifier for this field
label String The label for this field
output String The value as it was input by the user, which is the same as the value property. May include additional markup in the editor preview to make it easier to edit content

Contains code - which may be any of CSS, Javascript, Liquid Markup, JSON objects, or any other type of code. This code is not evaluated or processed before being output. Use with extreme caution.

Related

string

Can be any text, from the empty string ("") to the full HTML output of the template. When used alone in a conditional, all strings evaluates as true - even if they are empty or a value such as "0" or "false".

{{ stylesheet }}

null

Represents empty space or a non-existant object. Like how you would describe a chair that is missing from the table, or the food on an empty platter.

{{ template }}

{{ javascript }}