I have a simple Matrix field inside Low Variables. All I want to do is display a message when there are no results, but the conditional isn't working.

Am I doing something wrong?

{exp:low_variables:pair var="friends"}

    {if no_results}
         <p>Coming Soon</p>

<div class="span4">
    <ul class="span4 unstyled text-center">
       <li><a href="{link}">Website</a></li>


1 Answer 1


Matrix doesn't have a no_results variable. You'll have to just see if the LV field is empty instead. Try this.

{if '{exp:low_variables:pair var="friends"}{name}{exp:low_variables:pair}' == ''}
  <p>Coming soon.</p>
{exp:low_variables:pair var="friends"}
  • 1
    Thanks Stephen, it almost worked, I just needed to change it to a single variable: {if '{exp:low_variables:parse var="friends"}' == ''} <p>Coming soon.</p> {/if}
    – Jon Wright
    Commented May 10, 2013 at 14:12
  • Cool. Glad you got it. Commented May 10, 2013 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.