Re: Hideif on IP range

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59326
interpreted = N
texte = I just use... [showif [IPADDRESS]~024.094.012.] Just the begins with comparison for the showif or hideif... On Sep 9, 2004, at 8:54 AM, Rob Marquardt wrote: > 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 > addresses > with zeros, and even if it didn't you're doing numeric comparisons on > strings. > > 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 Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.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/ > > Jay Van Vark 'Guiding Positive Change in High-Tech Companies' voice (858) 229-3102 efax (801) 659-7952 http://www.VanVark.net ------------------------------------------------------------- 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:

    
  1. Re: Hideif on IP range ( Brian Fries 2004)
  2. Re: Hideif on IP range ( Donovan Brooke 2004)
  3. Re: Hideif on IP range ( Rob Marquardt 2004)
  4. Re: Hideif on IP range ( "Paul Berman" 2004)
  5. Re: Hideif on IP range ( Brian Fries 2004)
  6. Re: Hideif on IP range ( "Paul Berman" 2004)
  7. Re: Hideif on IP range ( Jay Van Vark 2004)
  8. Re: Hideif on IP range ( Rob Marquardt 2004)
  9. Re: Hideif on IP range ( "Paul Berman" 2004)
  10. Re: Hideif on IP range ( Tim Robinson 2004)
  11. Re: Hideif on IP range ( "Paul Berman" 2004)
I just use... [showif [ipaddress]~024.094.012.] Just the begins with comparison for the showif or hideif... On Sep 9, 2004, at 8:54 AM, Rob Marquardt wrote: > 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 > addresses > with zeros, and even if it didn't you're doing numeric comparisons on > strings. > > 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 Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.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/ > > Jay Van Vark 'Guiding Positive Change in High-Tech Companies' voice (858) 229-3102 efax (801) 659-7952 http://www.VanVark.net ------------------------------------------------------------- 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/ Jay Van Vark

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:

search/showif issues (2000) [newcart] (1998) Error Log (1998) searchable list archive (1997) unsubscribe (1997) How to Display text in empty fields (1997) To Err or Not Custom Error (1999) Database Options (1997) FileMaker and WebCat - .hdr OK Merge not OK (1999) search for all (1998) Requiring that certain fields be completed (1997) Bug or syntax error on my part? (1997) Can you do this??? and other stuff (1997) WebCat2b12--[searchstring] bug (1997) Looking up two prices in database? (1997) Error Lob.db records error message not name (1997) Browser frames and URLs in the Location field (2004) Undeliverable Mail (1997) Setting up shop (1997) WebCat2 Append problem (B14Macacgi) (1997)