Re: Hideif on IP range
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59324
interpreted = N
texte = on 9/9/2004 7:38 am, Paul Berman at paul@ast.jagrove.com so noted...> Works very well, to add another range to this do I nest the [If's}> > Many thnaks> Paul> ----- Original Message -----> From: "Tim Robinson"
> To: "WebDNA Talk" > Sent: Thursday, September 09, 2004 2:12 PM> Subject: Re: Hideif on IP range> > > [If ("[ipaddress]">"194.158.32.0")&("[ipaddress]"<"194.158.63.255"]> [Then]Don't show stuff[/Then]> [Else]Show stuff[/Else]> [/If]I don't see how this would possibly work, since WebDNA pads IP addresseswith zeros, and even if it didn't you're doing numeric comparisons onstrings.Something like this would be required:[listwords words=[ipaddress]&delimiters=.][!][/!][math show=f]block[index]=[word][/math][!][/!][/listwords] [If ("[block1].[block2]"="194.158")&([block3]>31)&([block3]<64)][Then]Don't show stuff[/Then][Else]Show stuff[/Else][/If]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
on 9/9/2004 7:38 am, Paul Berman at paul@ast.jagrove.com so noted...> Works very well, to add another range to this do I nest the [If's}> > Many thnaks> Paul> ----- Original Message -----> From: "Tim Robinson" > To: "WebDNA Talk" > Sent: Thursday, September 09, 2004 2:12 PM> Subject: Re: Hideif on IP range> > > [If ("[ipaddress]">"194.158.32.0")&("[ipaddress]"<"194.158.63.255"]> [Then]Don't show stuff[/Then]> [Else]Show stuff[/Else]> [/If]I don't see how this would possibly work, since WebDNA pads IP addresseswith zeros, and even if it didn't you're doing numeric comparisons onstrings.Something like this would be required:[listwords words=[ipaddress]&delimiters=.][!][/!][math show=f]block[index]=[word][/math][!][/!][/listwords] [If ("[block1].[block2]"="194.158")&([block3]>31)&([block3]<64)][Then]Don't show stuff[/Then][Else]Show stuff[/Else][/If]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Rob Marquardt
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Only charge card when product shipped ? (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Don't tick me off :) [elaspedtime] (1997)
[WebDNA] Wrong email address (2008)
Multiple servers and Webcat (1998)
date format (2000)
Help formatting search results w/ table (1997)
SKU lookup (1997)
Search in 2 or more catalogs (1997)
Displaying photo attached to first record (1997)
WCS Newbie question (1997)
$Replace with [founditems] (1997)
Secure server question (1997)
Displaying Location (1997)
How Many SKU's is enough? (1997)
Integrate login with phpBB or vBulletin (2006)
Web Developer Product Awards (1997)
Applying discounts as more items are added... (1997)
Smith Micro - no competition (2000)
Default admin bug and how tech support reacted to it. (2000)