Change to <% if "<%img_faculty%>" <> "" then %> if you want the statement to run only if the element is not empty.
On Nov 10, 2:05 pm, Rodger <[email protected]> wrote: > this query string will work: > <query valuea="String:<%img_faculty%>" operator="!=" valueb="String:"> > or you can use some preexecuting scripts like: > <% if "<%img_faculty%>" = "" then %> > .... > <% end if %> > > -Rodger > > At 2010-11-10 19:39:27,Tiffany <[email protected]> wrote: > > > > > > > > >I am trying to write an if/else statement to do something if a > >placeholder is not null. Here is my query string: > > > <query valuea="<%img_faculty%>" operator="!=" valueb="Int:0"> > > >Unfortunately this does not work, nor does any other combination of > >null or empty that I have tried. I also tried something along the > >lines of: > > > <query valuea="CurrentPage.Element.Value(<%img_faculty%>)" operator="! > >=" valueb="Int:0"> > > >Does anyone know the correct syntax for this? Thanks in advance. > > >-- > >You received this message because you are subscribed to the Google Groups > >"RedDot CMS Users" group. > >To post to this group, send email to [email protected]. > >To unsubscribe from this group, send email to > >[email protected]. > >For more options, visit this group > >athttp://groups.google.com/group/reddot-cms-users?hl=en. -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
