Re: HideIf ip= OR ip=

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19482
interpreted = N
texte = >I'm trying to do a HideIf command based on IP address. I'm wondering if >it's possible to put 2 IP address in the command. > >Here's my code: >[hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > >This seems to work fine with one number. > >I've tried putting in a comma along with another IP address and then it >breaks. > >Is it possible to have 2 numbers? Or is there a workaround?Just nesting the [HIDEIF] tags should work, like:[HIDEIF [ipaddress]^204.107.136.] [HIDEIF [ipaddress]^204.107.137.] [include email.txt] [/HIDEIF] [/HIDEIF]Or you could do it the more general way:[MATH show=F]DontShow=0[/MATH][SHOWIF [ipaddress]^204.107.136.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][SHOWIF [ipaddress]^204.107.137.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][HIDEIF [MATH]DontShow[/MATH]=1] [include email.txt] [/HIDEIF] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: HideIf ip= OR ip= (Michael Winston 1998)
  2. Re: HideIf ip= OR ip= (Brian B. Burton 1998)
  3. Re: HideIf ip= OR ip= (Michael Winston 1998)
  4. Re: HideIf ip= OR ip= (PCS Technical Support 1998)
  5. Re: HideIf ip= OR ip= (Christer Olsson 1998)
  6. HideIf ip= OR ip= (Sue Ann Sanders 1998)
>I'm trying to do a HideIf command based on IP address. I'm wondering if >it's possible to put 2 IP address in the command. > >Here's my code: >[hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > >This seems to work fine with one number. > >I've tried putting in a comma along with another IP address and then it >breaks. > >Is it possible to have 2 numbers? Or is there a workaround?Just nesting the [hideif] tags should work, like:[HIDEIF [ipaddress]^204.107.136.] [HIDEIF [ipaddress]^204.107.137.] [include email.txt] [/HIDEIF] [/HIDEIF]Or you could do it the more general way:[MATH show=F]DontShow=0[/MATH][SHOWIF [ipaddress]^204.107.136.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][SHOWIF [ipaddress]^204.107.137.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][HIDEIF [math]DontShow[/MATH]=1] [include email.txt] [/HIDEIF] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

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:

Nested tags count question (1997) Re2: frames & carts (1997) FlushDatabase Suggestion (1998) Re:PCS Customer submissions ? (1997) can WC render sites out? (1997) RE: OK, here goes... (1997) Error Log (2000) WebCat2b12 - nesting [tags] (1997) How far do [showif]s go? (1997) Help name our technology! (1997) WebCatalog for guestbook ? (1997) I need to get a [grep] (2003) emailer error -108 (1997) Re:Can someone remove this guy with the 186k emails!? (Thanksfor the email!) (1998) Subtotal help (1997) ANother SHOWIF problem (1997) WebDNA versus ASP [OT] (2002) WebCat2 - Getting to the browser's username/password data (1997) Showif for mulitple variations (1997) [WebDNA] [OT] WebDNA Wiki - need grammar check / (2009)