Aug 04
Todd Vainisi Compare a string to each member of an array
Aug 04, 2014; 15:29
Todd Vainisi
Compare a string to each member of an array
Hi,
I have some code that looks like this:
if(#url !>> 'template_detail.lasso' && #url !>> 'attachment.lasso' && #url !>> 'shared.lasso=92);
The point of the code is that if the url IS NOT one of those pages, I take some action. Also, I use the !>> because the string in #url is contains other errata from the actual url (like http://www. or possibly post params).
The list of comparison strings is about to grow. I want to put the string values into an array and see if the local partially matches anything in the array but I don=92t want to do anything like:
local(=91found_it=92)=false;
iterate(#myArray, local(=92aUrl=92));
#url >> #aUrl ? #found_it = true;
/iterate;
Seems like I should be able to do that all in a single line without declaring the boolean, more like the original line works. Any suggestions?
Oh, Lasso 8.6.
Todd V
#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 04
Brad Lindsay Re: Compare a string to each member of an array
Aug 04, 2014; 15:38
Brad Lindsay
Re: Compare a string to each member of an array
Aug 04
Steve Piercy - Website Builder Re: Compare a string to each member of an array
Aug 04, 2014; 12:43
Steve Piercy - Website Builder
Re: Compare a string to each member of an array
Aug 04
Steffan A. Cline Re: Compare a string to each member of an array
Aug 04, 2014; 12:53
Steffan A. Cline
Re: Compare a string to each member of an array
Aug 04
Todd Vainisi Re: Compare a string to each member of an array
Aug 04, 2014; 15:58
Todd Vainisi
Re: Compare a string to each member of an array
Aug 04
Todd Vainisi Re: Compare a string to each member of an array
Aug 04, 2014; 16:03
Todd Vainisi
Re: Compare a string to each member of an array
Aug 04
Todd Vainisi Re: Compare a string to each member of an array
Aug 04, 2014; 16:04
Todd Vainisi
Re: Compare a string to each member of an array
Aug 04
Todd Vainisi Re: Compare a string to each member of an array
Aug 04, 2014; 16:12
Todd Vainisi
Re: Compare a string to each member of an array
Aug 05
Ke Carlton Re: Compare a string to each member of an array
Aug 05, 2014; 18:00
Ke Carlton
Re: Compare a string to each member of an array