| thanks to Robert and Stefan. I knew it could be done, because I did it before on an app where we checked for permissions this way. Every user had permissions and we checked to see if the app he requested was in his permissions array. I couldn't find it, but I did do this and it worked. <@if expr="<@var array3> contains <@VAR name="pipelinelist[[<@currow>,1]>"><@else> <option value="<@VAR name="pipelinelist[[<@currow>,1]"><@VAR name="pipelinelist[[<@currow>,1]</option> </@if> Obviously Stefans is more elegant. <@if "!(@@array_var contains @@value)"> show value </@if> I suppose the first line says, "if the array does not contain the value" then show value. I didn't know you could write it that way. I just tried it and it works great. Thanks for the tip. So with can you always eliminate expr when using the <@if tags? Just put the stuff inside the quotes? Where else can you use the !(kdkdkdkd) notation to mean not? I knew != meant not equals, but I had never seen this. Mark On Oct 23, 2006, at 8:50 PM, Robert Garcia wrote: Yes, I see that, just looked at docs. Haven't used it that way, and it doesn't describe if and how it works on arrays with more than one column, and how to specify that column. Do you use it this way? Mark Weiss ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Witango-Talk: Contains David Mark Weiss
- Re: Witango-Talk: Contains Robert Garcia
- Re: Witango-Talk: Contains David Mark Weiss
- Re: Witango-Talk: Contains Stefan Gonick
- Re: Witango-Talk: Contains Robert Garcia
- Re: Witango-Talk: Contains David Mark Weiss
- Re: Witango-Talk: Contains Robert Garcia
- Re: Witango-Talk: Contains David Mark Weiss
- Re: Witango-Talk: Contains Stefan Gonick
- Re: Witango-Talk: Contains Robert Garcia
- Re: Witango-Talk: Contains David Mark Weiss
- RE: Witango-Talk: Contains Robert Shubert
- Re: Witango-Talk: Contains Robert Garcia
