Stellar Boolean Expressions

In Stellar, you can use variables in boolean expressions and variables that are not explicitly interpreted as booleans subject to specifies rules.

In Stellar, if you use variables in boolean expressions or variables that are not explicitly boolean, these variables will be subject to the following rules:
  • Similar to python and javascript, empty collections (for example, []) will be interpreted as false
  • Similar to python and javascript, missing variables will be interpreted as false
  • Variables set to null will be interpreted as false