Overview
Crafting Strategies
Backtesting
UI Features
Common Models
Undefined Property Handling
Handling Undefined Property
When a property does not exist, it becomes undefined. This table shows how undefined values are treated in Equities Lab
Operation | Result |
5 + or – Undefined | 5 |
5 * or / Undefined | Undefined |
X > or < or = Undefined | False |
X != Undefined | True for all X |
Market Rank/Rank/Percentile of Undefined | Undefined |
How to I handle undefined values myself?
If the defaults do not work well for your particular strategy, we recommend using the value of operator, which will take the first defined value in a sequence you supply. For example, the term below will return the market rank if it exists, and 50 otherwise.
What if I want something more complex?
You can also use has and if/else if you want more complex logic in the case where your
contact sales@equitieslab.com