# Conditionals based on custom fields

**URL:** <https://forum.pinegrow.com/t/conditionals-based-on-custom-fields/6771>\
**Category:** Questions\
**Created:** [August 7, 2022, 4:26am UTC](https://forum.pinegrow.com/t/conditionals-based-on-custom-fields/6771 "2022-08-07T04:26:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [August 7, 2022, 4:26am UTC](https://forum.pinegrow.com/t/conditionals-based-on-custom-fields/6771/1 "2022-08-07T04:26:55Z")

</div>

I’m a little confused about the way conditionals are supposed to work in Pinegrow since there isn’t much documentation on them.

- How can I show or hide something based on the value or existence or a custom field? The get\_post\_meta conditions seems to be a step in the right direction, but it only lets me use true/false conditions.
- What is the purpose of the “else” conditional. I can’t seem to get it to do anything.
- What would be the right way of writing a condition that says "if the value of ‘custom\_title’ is null then use ‘the\_title()’?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/20431c98f048522c0cd545929f47443b01528669.png)
