---
title: Update - Deprecate ifundefined
description: Learn about Betty Blocks' product changes – the deprecation of the ifundefined function in favor of ifnil. Discover how this update affects your app development process.
---

[Product changes ](https://blog.bettyblocks.com/product-changes)

# [Update - Deprecate ifundefined](https://blog.bettyblocks.com/product-changes/update-deprecate-ifundefined)

 Written by [Peter Arentsen](https://blog.bettyblocks.com/product-changes/author/peter-arentsen) | Feb 14, 2018 2:48:00 PM

We deprecated the ifundefined expression function and replaced them with the already existing ifnil function. Ifundefined was often used to check if a variable was available or not. However, you don't need to do this anymore because variables are always available (in the scope you are in). The only thing you have to check is if the variable is empty or not. Therefore we replaced the ifundefined and with ifnil.

 

[View full post](https://blog.bettyblocks.com/product-changes/update-deprecate-ifundefined)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Peter Arentsen"
  },
  "dateModified" : "2023-06-20T09:16:04.476Z",
  "datePublished" : "2018-02-14T14:48:00Z",
  "headline" : "Update - Deprecate ifundefined",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://blog.bettyblocks.com/product-changes/update-deprecate-ifundefined",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Product changes"
  }
}
```