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:

WebDNA Payment Alternatives (2003) Date Sorting (1997) WebCatalog can't find database (1997) [WebDNA] feature suggestion (2011) Problem: 3.0 doesn't update carts (1997) WC2b12: Yes, Formulas.db is for real (1997) Re:1 cent answer? (1998) ListDatabases & ShowIf (2003) Grouping fields problem (1998) Trigger Error (2001) shipcost (1997) Help!!!! (1997) Sorry I didn't pay attention-but ??? (1997) Help! WebCat2 bug (1997) HomePage Caution (1997) Blasted shownext (request for 4.0) (1998) Webcatalog serving binary data (2000) Searching multiple Databases (1997) Thanks and Big News!!! (1997) [Announce] Newest Commerce Site based on WebCatalog (1997)