Skip to main content
Skip table of contents

Truthy and Falsy

In programming, anything that returns true in a conditional is called truthy. Anything that returns false in a conditional is called falsy. All object types can be described as either truthy or falsy.

  • All values in ZML are truthy except nil and false. Strings, even when empty, are truthy.

  • The falsy values in ZML are nil and false.

Summary

The table below summarizes what is truthy or falsy in ZML.

Truthy

Falsy

true



false



nil



string



empty string



0


integer



float



array



empty array



page



EmptyDrop




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.