Forum Discussion

lharrison's avatar
lharrison
Cloud Apps
03-07-2023

Default Condition on BloX?

I am using the conditions feature on BloX cards. Here is an example:

 

    "conditions": [
        {
            "minRange": "-Infinity",
            "maxRange": -0.01,
            "color": "#FA5656",
            "image": "/plugins/BloX/blox-images/StockMarket/arrow-down.png"
        },
        {
            "minRange": 0,
            "maxRange": "Infinity",
            "color": "#54a254",
            "image": "/plugins/BloX/blox-images/StockMarket/arrow-up.png"
        }
    ]

 

This works well, but if the value is null, it renders unpredictably. What I'm looking for is a conditional for when the value is null. Does anyone know how to go about this?