Thanks Audun,<br><br>I know that option works, but that works  for   (:pagelist $:MyPageTextVariable=- :)  no empty only. I need it to be , no empty and also only for the values of Opt1 and Opt2 wich are definition list with spaces, so they have to be quoted.<br>

<br>So should it be (:pagelist group=testgroup  $:Var=-,&quot;*{$Opt1}*,*{$Opt2}*&quot;:) or  (:pagelist group=testgroup  $:Var=&quot;-,*{$Opt1}*,*{$Opt2}*&quot;:) or (:pagelist group=testgroup  $:Var=&quot;*{$Opt1}*,*{$Opt2}*&quot;,-:) (neither of those work), that is what I am trying.<br>

<br>Regards,<br>Edwin<br><br><div class="gmail_quote">On Tue, Mar 9, 2010 at 6:25 PM, Audun Myhra Bergwitz <span dir="ltr">&lt;<a href="mailto:bergwitz@gmail.com">bergwitz@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

ABClf wrote:<br>
&gt;&gt;From pagelists page doc :<br>
&gt;<br>
&gt; PTV is set (is not empty):    (:pagelist $:MyPageTextVariable=- :)<br>
<br>
This would solve your problem.<br>
&gt;<br>
&gt; Maybe to be used with « if » statement, not sure how to do exactly,<br>
&gt; maybe it helps.<br>
&gt;<br>
No need to use a if statement to exclude pages without PTVs, the code<br>
above works just as described.<br>
<br>
audun<br>
<br>
&gt;<br>
&gt;<br>
&gt; 2010/3/9 edwin marte &lt;<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>&gt;:<br>
&gt;&gt; My case is teh following, I have a pagelist like this  (:pagelist<br>
&gt;&gt; group=testgroup  $:Var=&quot;*{$Opt1}*,*{$Opt2}*&quot;:)<br>
&gt;&gt;<br>
&gt;&gt; Mostly this pagelitst works but when opt1 or Opt2 are empty will cause the<br>
&gt;&gt; pagelist to show all pages **. Because of the quotes I don&#39;t know how to<br>
&gt;&gt; make the pagelist works excluding the variables where Var is empty .How can<br>
&gt;&gt; I include a filter like that in the pagelist above.?<br>
&gt;&gt;<br>
&gt;&gt; Best Regards,<br>
&gt;&gt; Edwin<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; pmwiki-users mailing list<br>
&gt;&gt; <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
&gt;&gt; <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br>